owl

Protege Using swrl:equal to compare the values of datatype property

孤街醉人 提交于 2019-12-25 16:03:14
问题 I am building an ontology of 3 classes : Messages Ham Spam 2 dataproperties , domain : Messages and range xsd:string : hasInterest hasCategory 2 SWRL Rules: Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:equal(?a,?b) ->Ham(?x) Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:notEqual(?a?b) ->Spam(?x) I want to classify instances of class Message to class Spam or Ham ; if the hasCategory value ( message category) is equal to the hasInterest value ( user interests) then the

Protege Using swrl:equal to compare the values of datatype property

非 Y 不嫁゛ 提交于 2019-12-25 16:02:16
问题 I am building an ontology of 3 classes : Messages Ham Spam 2 dataproperties , domain : Messages and range xsd:string : hasInterest hasCategory 2 SWRL Rules: Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:equal(?a,?b) ->Ham(?x) Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:notEqual(?a?b) ->Spam(?x) I want to classify instances of class Message to class Spam or Ham ; if the hasCategory value ( message category) is equal to the hasInterest value ( user interests) then the

How to convert arelational data base into an ontology (owl)

不打扰是莪最后的温柔 提交于 2019-12-25 08:48:43
问题 I want to convert a relational data base into an ontology. Which the best tool for doing that? 回答1: You should look into R2RML. The direct mappings are a pretty easy way to quickly convert relational data into RDF. 来源: https://stackoverflow.com/questions/43740648/how-to-convert-arelational-data-base-into-an-ontology-owl

Link object to subject in RDF domain

非 Y 不嫁゛ 提交于 2019-12-25 07:33:20
问题 I have this RDF file: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:j.0="http://relation/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <rdf:Description rdf:about="soggetto"> <j.0:Nome>Vercelli</j.0:Nome> <j.0:Regione>Piemonte</j.0:Regione> </rdf:Description> <rdf:Description rdf:about="Piemonte"> <rdfs:label>Piemonte</rdfs:label> </rdf:Description> <rdf:Description rdf:about="Regione"> <rdfs:label>Regione</rdfs:label> <rdf:type rdf:resource="http://www.w3.org

Type inference using class expresions on Protege

柔情痞子 提交于 2019-12-25 02:35:29
问题 I was hoping I could defined Elective_Course in such a way that all individuals that are partOf a Knowledge_Unit and are not of type Core_Course are Elective_Course s. For Course I have this: I thought maybe something on the lines of (partOf only Knowledge_unit) and not(Core_Course) would do the trick, but it doesn't work. Maybe it is because I need and only with the inverse property of partOf , but I haven't defined that property since I didn't need it for the rest. So I could say in

Jena; listDeclaredProperties semantics

为君一笑 提交于 2019-12-25 01:55:45
问题 Let's consider a (1) P Domain CSuper (2) CSub subClassOf CSuper Using Jena, I'm trying to list the declared properties for CSub . What I believe is that P mustn't be listed as a declared property for CSub . My justification: P is a declared property for CSub , iff CSub is a domain for P , from (1) CSuper is a domain for P which doesn't imply that CSub is also a domain; (1) means that if (x, y) is P , then x is CSuper , clearly x may (not) be CSub . The surprising thing is that Jena is listing

Is there any library that could easily change and update OWL files? [closed]

孤街浪徒 提交于 2019-12-24 14:12:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am a beginner in OWL. Is there any library that could easily change and update OWL files? And which language is the library use? Thank you! 回答1: How about the OWL API? It's a Java library. Apache Jena is a Java framework for doing all sorts of Semantic Web stuff, it does much more than just OWL, but perhaps

How to infer individual with more than 2 properties in OWL / GraphDB?

时间秒杀一切 提交于 2019-12-24 10:58:54
问题 I got advice from the previous question and modified the source. However, the source still does not work properly. I am using GraphDB(RuleSet: OWL2-RL) and SPARQL. I have an ontology with Person and Animal_Lover classes. People are Animal_Lover if they have more than 2 pet. How can I do this in my ontology? <?xml version="1.0"?> <rdf:RDF xmlns="http://www.example.com/test" xmlns:test="http://www.example.com/test#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www

How to prove that something can *not* be translated into description logic?

你说的曾经没有我的故事 提交于 2019-12-24 10:11:07
问题 My intuition says that it is not possible to translate the sentence all red cars are better than all blue cars into description logics (in FOL this would be ∀x∀y (red(x) ∧ blue(y) → better(x,y)) interpreted in the domain of cars). Indeed, the only construction that is a complete binary relation containing all pairs of elements of the domain is the universal role U . I don't see how to ask for all pairs of elements of the set red on the left and elements of the set blue on the right, i.e., how

sparql DESCRIBE query to get data about linked objects

╄→尐↘猪︶ㄣ 提交于 2019-12-24 08:47:09
问题 I have defined a rdf class for Books. Another rdf class for describing people. The Book class contains authoredBy field which links book instances to people instances. Properties of Book Book -Id -name -authoredBy Person -id -firstName -LastName -designation For retrieving book properties, i use the following sparql query DESCRIBE ?book WHERE { ?book a rdf:Book ; } I am able to retrieve all the properties belonging to Book using DESCRIBE i.e the predicate , subject and object. However when it