owl

Problem in selecting constants of an enum class

吃可爱长大的小学妹 提交于 2019-12-11 15:02:02
问题 I've encourted a problem recently about cycling between constants of an enum class in .net (that is created from my OWL class, by Rowlex OwlGrinder). Problem was solved by means of using .net reflection (thanks to great help from dear Mr. Jon Skeet): stackoverflow:problem-cycling-enum-class-values By solving this, I started using it. After matching a dropDownList selected value to one of the enum class instances, I had to declare the selected object(=Language) to my RDF subject(

Conflicts with using xsd:integer as rdfs:range

回眸只為那壹抹淺笑 提交于 2019-12-11 14:37:32
问题 I am defining a property with integer range as :hasIndex rdf:type owl:DatatypeProperty ; rdfs:range xsd:integer . My understanding is that it should only accept integers as object, anything else should be considered as inconsistent and throw errors. However, when I create instances with strings as objects in GraphDb as the following, both entries are successfully loaded into the database (as "asd"^^xsd:string) without any errors: :nodea :hasIndex "asd" . :nodeb :hasIndex "asd"^^xsd:string .

Retrieve Data Properties of An Individual using OWL API in eclipse

若如初见. 提交于 2019-12-11 14:25:43
问题 I want to retrieve all data properties set for an individual of any class using owl api. The code i have used is OWLNamedIndividual inputNoun = df.getOWLNamedIndividual(IRI.create(prefix + "Cow")); for (OWLDataProperty prop: inputNoun.getDataPropertiesInSignature()) { System.out.println("the properties for Cow are " + prop); //line 1 } This code compiles with success but line 1 print nothing at all. What should be the correct syntax. Have thoroughly googled and couldnt find any thing worth it

Specifying class equivalence in Jena rules

时光毁灭记忆、已成空白 提交于 2019-12-11 13:14:41
问题 Given an ontology with Class A and Class B I am stating a rule: [-> (ns:Class_A owl:equivalentClass ns:Class_B)] However the Jena generic rule reasoner is only applying the tag equivalentClass to Class A , i. e. it is not stating Class B equivalentClass Class A . Furthermore, I have an object A that is an individual of Class A , the reasoner is not applying Class B as a type of object A . Is there another way to specify class equivalence through Jena rules? And is it better to use the generic

Inheritance of property characteristic by sub-properties

こ雲淡風輕ζ 提交于 2019-12-11 12:15:48
问题 In OWL, is a sub-property of an irreflexive property also irreflexive? Likewise is a sub-property of an asymmetric property also asymmetric? Logically, they should be, but I can't find anything in the OWL documentation that specifies that this is the case. Consider the following example: :parent-of a owl:IrreflexiveProperty . :father-of a owl:ObjectProperty ; owl:subPropertyOf :parent-of . Based on this ontology, the following would not be allowed because parent-of is irreflexive: _:max

SPARQL if an instance has a property, others must as well

↘锁芯ラ 提交于 2019-12-11 11:45:46
问题 I have a specific instance and a SPARQL query that retrieves other instances similar to that one. By similar, I mean that the other instances have at least one common property and value in common with the specific instance, or have a class in common with the specific instance. Now, I'd like to extend the query such that if the specific instance has a value for a "critical" property, then the only instances that are considered similar are those that also have that critical property (as opposed

Recurring on Temporal Seq Member in OWL Time

被刻印的时光 ゝ 提交于 2019-12-11 11:31:54
问题 A paper about an extension of the OWL Time-Temporal Aggregates Ontology-details how to represent recurring event using OWL Time. I am unsure about the representation of a particular recurring event. This is because it is unclear about whether a TemporalSeqMember can be itself a TemporalSeq. Secondly, I do not think that I correctly understood the essence of TemporalSeqMember I have two questions: What is the usefulness of TemporalSeqMember Is the following modelling the right way to model

Find individuals in SPARQL based on other relations / Compare sets

时光毁灭记忆、已成空白 提交于 2019-12-11 11:19:12
问题 Given are Objects :A, :B and :C which have properties assigned, whereas these properties are not scalar themselves but are also objects with key and value properties. @prefix x: <http://example.com/example#> x:A x:hasProp x:Prop1 . x:Prop1 x:Key "1" . x:Prop1 x:Value "AA" . x:B x:hasProp x:Prop2 . x:Prop2 x:Key "1" . x:Prop2 x:Value "AA" . x:C x:hasProp x:Prop3 . x:C x:hasProp x:Prop4 . x:Prop3 x:Key "1" . x:Prop3 x:Value "AA" . x:Prop4 x:Key "2" . x:Prop4 x:Value "BB" . How can I assert that

How to read ontology file with owl:imports in JENA?

我的梦境 提交于 2019-12-11 10:57:26
问题 I have an owl file that import some other ontologies from other owl files. I tried to follow JENA API Documentation to deal with it, but could not succeed. What am I missing? The codes I used are above: e-GovSecAOnto.owl imports: <owl:Ontology rdf:about=""> <owl:imports rdf:resource="http://www.ida.liu.se/~iislab/projects/secont/Security.owl"/> <owl:imports rdf:resource="http://www.unifiedcloud.org/2009/2/26/uci.owl"/> <owl:imports rdf:resource="http://wwwsemanticweb.org/ontologies

SPARQL - how to get individual data property from linked individual

早过忘川 提交于 2019-12-11 10:53:32
问题 I build this ontology in protege. I have this individual ev001 that has these types Room , hasRoom only {rm001} and rm001 has data property roomName "room 1"^^xsd:string . Right now I have a SPARQL query that returns Event Room RoomName ev001 {rm001} My question is, how to get the room name from there, here is my query so far SELECT ?event ?room ?roomname WHERE { ?x owl:onProperty base:hasRoom . ?event a base:FilmScreening ; a ?x . ?x owl:allValuesFrom ?room . } Any advice is appreciated,