owl

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

How do owl and rdfs property domain range work?

五迷三道 提交于 2020-01-03 04:16:35
问题 I am trying to understand the semantics of rdfs domain and range. Because I am from an object oriented background, I am struggling to understand the semantics and how to validate data against the rdfs statements. Here is a sample file in turtle format: PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix tmpl: <http://template.example.com/> prefix data: <http://data.example.com/> tmpl

OWL Api, move class from parent A to B

前提是你 提交于 2020-01-03 02:25:33
问题 I'm having a quick question regarding the usage of the owl api. Say I have a class called Species, which has a Subclass mammal, which has a Subclass Primate, which has a subclass Human. species -> mammal -> primate -> human For some reason, I would like to reclassify this in our software and say that Primates are not longer considered Mammals, instead they should be a direct subclass of a Species. Meaning our graph should look like this now species -> primate -> human can anybody please point

merging two owl files and eliminate common classes in one file

╄→尐↘猪︶ㄣ 提交于 2020-01-02 23:10:07
问题 I am very new to web ontology languages, I have created owl files using protege and I have to write a program that should merge these files into one. Is it possible with jena? Can anyone help with how to proceed?Can I do that in java using owl API? thanks in advance. 回答1: I was able to solve it with protege and it works. Thanks for all the comments and contributions. It helped a lot. :-) 来源: https://stackoverflow.com/questions/19280857/merging-two-owl-files-and-eliminate-common-classes-in-one

Problem of reading OWL/XML

青春壹個敷衍的年華 提交于 2020-01-02 09:59:29
问题 I have a problem reading OWL/XML files from Java using Jena. I have no problem reading RDF/XML files, but whenever I create a OWL/XML file from Protege and try to read it, Java gives this error below : WARN [main] (RDFDefaultErrorHandler.java:36) Exception in thread "main" java.lang.NullPointerException at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.endElement(XMLHandler.java:143) The code that I use to retrieve RDF/XML is below : OntModel ontModel = ModelFactory.createOntologyModel();

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

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

Why is this DL-Query not returning any individuals?

一世执手 提交于 2019-12-30 09:51:12
问题 This DL-Query is not returning any individuals: Query (Protégé syntax) : hasPet exactly 1 DomesticAnimal Here's part of the ontology: :hasPet a owl:ObjectProperty; rdfs:domain :Human; rdfs:range :DomesticAnimal; owl:inverseOf : petOf; :Joe a :Human; hasPet :Lassy. :Bob a :Human; hasPet :Sparkey, Lucky. Queries: petOf value Bob returns Sparkey and Lucky petOf value Joe returns Lassy hasPet exactly 1 returns nothing. Why isn't the last query returning Joe ? I have tried it with in Protégé with

Modelling OWL datatype property restrictions with a list of values

ⅰ亾dé卋堺 提交于 2019-12-29 07:23:33
问题 I have class called ResponseInformation that a has a datatype property called hasResponseType , which must have only the following string values: "Accept", "Decline" and "Provisional". I understand that I can model this as a set of individuals of a class called ResponseType which are then called accept, decline, and provisional respectively, and an owl:oneOf axiom stating that the class ResponseType is equivalent to exactly "one of" this set of instances. However, I came to realise that OWL 2