semantic-web

How to specify that a chain of relationships implies another

倖福魔咒の 提交于 2020-01-04 05:54:12
问题 Suppose I'm defining an OWL ontology for family relationships, and I've already defined the relationships "sister-of" and "parent-of". I'd now like to define a relationship "aunt-of" and specify that this relationship is implied by a chain of the other two. In other words: if X "sister-of" Y, and Y "parent-of" Z, then X "aunt-of" Z. Is there a way to do this? It's similar to owl:TransitiveProperty but that obviously doesn't work. It's also in the same general vein as "owl:inverseOf" in terms

Use Jena to query wikidata

前提是你 提交于 2020-01-03 08:56:12
问题 Currently, Wikidata has a SPARQL endpoint "https://query.wikidata.org/", I would like to query this site using Jena (3.0.1), I use the following code but I got an error message " Endpoint returned Content-Type: text/html which is not currently supported for SELECT queries ". Is there a way to solve it? the same code works fine with dbpedia. Thanks queryString = "PREFIX bd: <http://www.bigdata.com/rdf#>\n" + "PREFIX wikibase: <http://wikiba.se/ontology#>\n" + "PREFIX wdt: <http://www.wikidata

How to check if OWLObjectPropertyExpression between classes exists?

眉间皱痕 提交于 2020-01-03 04:50:50
问题 Assuming two types of classes, one (A) "isManagedBy" by the other (B). The following owl snipped illustrates this scenario. There are multiple classes of type A (which are "managed by" other classes) and multiple classes of B. In fact, there is also a hierarchy between between classes bot of type A and B. <owl:ObjectProperty rdf:about="#isManagedBy"/> <owl:Class rdf:about="#FunctionManagement"> <rdfs:subClassOf rdf:resource="..."/> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf

boundary for arbitrary property path in SPARQL 1.1

↘锁芯ラ 提交于 2020-01-01 18:53:10
问题 Is it possible to bound the length of property path? For example getting all the triples with lengths that are between (m,n) or all that are not between this range? For instance, how could this be done with the following query? select ?x ?y where {?x p* ?y} 回答1: Some endpoints support this directly Some SPARQL engines support a method for doing this directly, with a regular-expression-like syntax. E.g., ?s :p{n,m} ?o would be a path with a length between n and m. That syntax is described in

boundary for arbitrary property path in SPARQL 1.1

坚强是说给别人听的谎言 提交于 2020-01-01 18:52:30
问题 Is it possible to bound the length of property path? For example getting all the triples with lengths that are between (m,n) or all that are not between this range? For instance, how could this be done with the following query? select ?x ?y where {?x p* ?y} 回答1: Some endpoints support this directly Some SPARQL engines support a method for doing this directly, with a regular-expression-like syntax. E.g., ?s :p{n,m} ?o would be a path with a length between n and m. That syntax is described in

In Semantic Web, are OWL EL, RL, QL all instances of DL? What is the difference? More inside

爷,独闯天下 提交于 2020-01-01 02:45:34
问题 I'm using the pellet reasoner on a number of ontologies and have run the info method on a list of IRIs (in this case URLs). The two metrics that interest me are the DL Expressivity and OWL Profile. The OWL Profiles I'm getting range from "OWL 2," "OWL 2 DL," "OWL 2 EL," "OWL 2 QL," "OWL 2 RL." When is says "OWL 2," does that mean the ontology is OWL 2 full? Are all the other variations DL? I have found a spec describing the different profiles (table 10 especially) [as a new user I can't post

getting a graph path using SPARQL [duplicate]

荒凉一梦 提交于 2019-12-31 03:43:10
问题 This question already has an answer here : Querying a Graph path in SPARQL (1 answer) Closed 4 years ago . We have the following turtle dataset representing a graph where we want to observe some properties. @prefix v1: <http://localhost:9091/graphe/> . @prefix v2: <http://localhost:9091/graphe#> . v1:a v2:p v1:b. v1:a v2:q v1:f. v1:a v2:p v1:g. v1:b v2:p v1:c. v1:c v2:q v1:h. v1:c v2:p v1:i. v1:c v2:p v1:d. v1:d v2:p v1:e. v1:f v2:p v1:g. v1:f v2:q v1:l. v1:f v2:p v1:k. v1:g v2:p v1:c. v1:g

Difference Between OWL-LIST and RDF-LIST

纵饮孤独 提交于 2019-12-30 11:51:20
问题 I cannot understand the difference between OWL-LIST and RDF-LIST. Secondly why OWL-DL do not support RDF-LIST due to OWL serialisation why? and how i can create OWL-LIST in OWL-DL 回答1: As mentioned in the comments, I don't think that there is any standard thing called OWL-LIST. There is a CO-ODE List Ontology that might be of interest to you if you need to represent lists in OWL: Description A set of entities used to describe the OWL list pattern. (see http://owl-workshop.man.ac.uk

Difference Between OWL-LIST and RDF-LIST

百般思念 提交于 2019-12-30 11:51:15
问题 I cannot understand the difference between OWL-LIST and RDF-LIST. Secondly why OWL-DL do not support RDF-LIST due to OWL serialisation why? and how i can create OWL-LIST in OWL-DL 回答1: As mentioned in the comments, I don't think that there is any standard thing called OWL-LIST. There is a CO-ODE List Ontology that might be of interest to you if you need to represent lists in OWL: Description A set of entities used to describe the OWL list pattern. (see http://owl-workshop.man.ac.uk

How to retrieve XML/RDF data from a dbpedia link or URL?

旧巷老猫 提交于 2019-12-30 07:14:32
问题 Recently I have been trying to learn Semantic Web. For a project I need to retrieve data from a given dbPedia link. e.g http://dbpedia.org/page/Berlin . But when retrieve data using java.net.URLConnection I get the html data. How can I get the xml from the same link ? I know that there is link in every dbpedia page to download the XML but that is not what I want to do. Thanks in advance. 回答1: Note that the URI of the resource is actually http://dbpedia.org/resource/Berlin (with resource , not