linked-data

Difference between rdf:seeAlso and rdfs:seeAlso

空扰寡人 提交于 2019-12-11 21:30:05
问题 What is the difference between rdf:seeAlso and rdfs:seeAlso ? When I can use rdf:seeAlso and when I can use rdfs:seeAlso ? Can you do any examples? 回答1: First, note that rdf and rdfs are prefixes commonly used to reference the RDF syntax and RDF schema vocabularies respectively. The rdf is typically used for http://www.w3.org/1999/02/22-rdf-syntax-ns#, so that rdf:seeAlso would expand to http://www.w3.org/1999/02/22-rdf-syntax-ns#seeAlso. However, if you follow the vocabulary reference, you

How to remove non-English entries from wikidata

旧街凉风 提交于 2019-12-11 16:02:03
问题 I am currently using the following SPARQL query to count the number of incoming links of a given node. SELECT (COUNT (*) AS ?count) WHERE {?s ?p wd:Q22673982 .} Code in Wikidata query editor: https://w.wiki/5DW However, the results include the count of non-English links as well. Is there a way to remove non-english links in wikidata results using SPARQL? I am happy to provide more details if needed. 来源: https://stackoverflow.com/questions/56724431/how-to-remove-non-english-entries-from

Sesame repository not being updated using INSERT despite no error

你说的曾经没有我的故事 提交于 2019-12-11 13:43:34
问题 I am trying to update a Sesame repository with data from dbpedia. I have the following query: PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX : <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX dbpedia: <http:/

Finding common categories or supercategories of resources

早过忘川 提交于 2019-12-11 12:57:30
问题 I'm wondering if we can know whether two resources have the same category or some subcategory (i.e., belong to categories of some common supercategory) in DBpedia? I tried this query in the DBpedia endpoint but it's wrong: select distinct ?s ?s2 where { ?s skos:subject <http :// dbpedia.org/resource/ Category ?c. ?s2 skos:subject <http :// dbpedia.org/resource/ Category ?c2. ?c=?c2. } 回答1: DBpedia doesn't use skos:subject for resources, but rather relates resources to their Wikipedia

Converting an RDB to RDF with autogenerated code

泪湿孤枕 提交于 2019-12-11 11:41:27
问题 I am using the OpenLink Virtuoso software to convert a Relational Database to RDF using this tutorial: Automated Generation of Linked Data Views over Relational Data Sources with Virtuoso I have a database with 5 tables ( Authors , Keywords , Publications , References , Rights ) and I imported them in Virtuoso database using .csv files. So basically I have followed the steps for the "Manual Linked Data Generation & Deployment using the Conductor's HTML-based wizard", because I need to use my

Specifying an intersection with multiple values in a SPARQL query

不羁的心 提交于 2019-12-11 05:46:50
问题 I'm trying to build a query that returns events that have two named participants. The names of these participants are specified using values for the first name and last name. So far, this is the only working solution I have been able to come up with: SELECT ?event WHERE { ?event con:hasParticipant ?personA . ?personA con:hasFirstName "Bob"^^xsd:string . ?personA con:hasLastName "Smith"^^xsd:string . ?event con:hasParticipant ?personB . ?personB con:hasFirstName "The"^^xsd:string . ?personB

Apache Fuseki: invoke str function

老子叫甜甜 提交于 2019-12-11 04:39:38
问题 I would run this query: SELECT DISTINCT ?id str(?name) but Fuseki give me this error: This line is invalid.Expected ( VAR1... I would need a string value of ?name . 回答1: I suppose you are talking about something like this. This message is a warning produced by Fuseki component called YASGUI (or rather YASQE). You have two options: Use more conformant syntax, i. e. SELECT DISTINCT ?id (str(?name) AS ?str_name) etc. Ignore this warning and run your query, Jena ARQ should accept it and return a

SPARQL CONSTRUCT: does implicit subject/object influence the result?

牧云@^-^@ 提交于 2019-12-11 01:49:09
问题 I have a SPARQL CONSTRUCT like: CONSTRUCT { ?address schema:addressLocality ?city; schema:addressCountry ?country; schema:streetAddress ?addressLine; schema:postalCode ?zip; schema:addressRegion ?region. } WHERE { ?address schema:addressLocality ?city; schema:addressCountry ?country. OPTIONAL { ?address schema:streetAddress ?addressLine } OPTIONAL { ?address schema:postalCode ?zip } OPTIONAL { ?address schema:addressRegion ?region } } I'm getting fewer triples this way, than when the

How to build correct SPARQL Query

廉价感情. 提交于 2019-12-11 01:06:28
问题 I need to get all players who have ever played for football team using SPARQL query and dbpedia.org I can get current team members using http://dbpedia.org/sparql and this query: PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> PREFIX p: <http://dbpedia.org/property/> PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> SELECT * WHERE { <http://dbpedia.org/resource/Manchester_United_F.C.> p:name ?player. ?player dbpedia-owl:birthPlace ?city; dbpedia-owl:birthDate ?dob. } How to get all

Why use owl:Restriction as own:EquivalenceClass's property?

狂风中的少年 提交于 2019-12-09 13:19:23
问题 I just start to learn Semantic Web and have a question about restriction class. I dug a while but haven't found any answer yet.. Any help would be much appreciated! From text book, I see examples of define restriction class, they are all about to define a anonymous owl:Restriction class bnode and link this bnode with property owl:equivalentClass . example: example:restrictionClass owl:equivalentClass [ rdf:type owl:Restriction; owl:onProperty example:resProp; owl:someValuesFrom example