owl

How do I define relation properties in OWL?

风流意气都作罢 提交于 2021-02-19 02:12:59
问题 In my ontology I have individuals "pic Joan" which is an instance of concept "mountain" and "port Cerbère" which is an instance of concept "village". I have the relation "dominates" going from "pic Joan" to "port Cerbère" (in the sense that the mountain is perceived as being close and above the village, and hence "dominates it"). But in fact, I need to represent the information "pic Joan dominates port Cerbère at a distance of 1.5 miles NW". So, logically, I would need to attach to the

How do I define relation properties in OWL?

此生再无相见时 提交于 2021-02-19 02:10:22
问题 In my ontology I have individuals "pic Joan" which is an instance of concept "mountain" and "port Cerbère" which is an instance of concept "village". I have the relation "dominates" going from "pic Joan" to "port Cerbère" (in the sense that the mountain is perceived as being close and above the village, and hence "dominates it"). But in fact, I need to represent the information "pic Joan dominates port Cerbère at a distance of 1.5 miles NW". So, logically, I would need to attach to the

How can I use the RDFLIB module in Python to retrieve a value from an OWL file using SparQL?

放肆的年华 提交于 2021-02-10 19:39:06
问题 I am currently trying to write a script in Python that uses the RDFLIB module in order to retrieve a specific value from an OWL file by using SPARQL. The problem I'm facing is that the current version of my script returns no data. I tried to print each row in order for myself to analayse the output, but the output simply reads "Process finished with exit code 0". My final goal is to retrieve a value (in the example, this value will be '96') from the OWL file. The object to which this value is

Check ontology consistency & satisifiability with OWL API 4

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 11:18:26
问题 I'm trying to check an ontology for its consistency. The ontology includes only descriptions of individuals, the class and semantic rules are described by an imported ontology. I thougt using the isConsistenct method would be the right choice. OWLReasonerFactory reasonerFactory = new StructuralReasonerFactory(); OWLReasoner reasoner = reasonerFactory.createNonBufferingReasoner(mergedOntology); if(reasoner.isConsistent()){ return "Merged ontology PASSED the consistency test"; }else{ return

Is there any implementation guide about AIML-OWL Integration?

只谈情不闲聊 提交于 2021-02-08 09:44:08
问题 So, i've done build an ontology using protégé and generate owl file, as far as i know owl is the rdf xml-based with more expressivity, and there are couples of paper that tells RDF can be integrated with AIML to build pattern matching chatbot with some kind of extensible knowledge such as https://www.researchgate.net/publication/228877414_Extending_knowledge_of_AIML_by_using_RDF http://conferences.idealliance.org/extreme/html/2007/Freese01/EML2007Freese01.html But i can't get any clear

How to get an explanation for an inconsistency using the owlexplanation project

橙三吉。 提交于 2021-02-07 04:25:37
问题 I have a question regarding the owlexplanation project by Matthew Horridge on GitHub. In the README file there is the following code : import org.semanticweb.owl.explanation.api.*; import org.semanticweb.owlapi.model.*; import org.semanticweb.owlapi.reasoner.OWLReasonerFactory; OWLReasonerFactory rf = ; // Get hold of a reasoner factory OWLOntology ont = ; // Reference to an OWLOntology // Create the explanation generator factory which uses reasoners provided by the specified // reasoner

Class not displayed in GraphDB

好久不见. 提交于 2021-01-29 07:44:36
问题 I have the following class: :Foo rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:onProperty :hasId ; owl:someValuesFrom rdfs:Literal ] . Strangely, that does not appear in the Class hierarchy tab of Ontotext's GraphDB. Is there any specific reason? 回答1: Is there any specific reason? From graphdb-framework-graph-explore-8.7.0.jar/dataviz-queries/getRdfClassHierarchy.sparql : PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX sesame: <http://www.openrdf.org/schema/sesame#

Using sh:maxExclusive to compare (the values of) two datatype properties

一个人想着一个人 提交于 2021-01-29 07:30:31
问题 Connected to this question: I cannot use sh:lessThan with xsd:positiveInteger Indeed, I managed to make my example working by writing: sh:property [ sh:path ontology:has-age ; sh:maxExclusive 16 ; ] ; However, now I would like to compare the value of "ontology:has-age" not with a constant but with the value of another datatype property defined on the same individual (and having 16 as value): ontology:John rdf:type ontology:DataSubject ; ontology:has-age "14"^^xsd:positiveInteger ; ontology

protege pellet deduce issue

谁都会走 提交于 2021-01-28 21:30:53
问题 this is my sample ontology created by protege 5.5.2: <?xml version="1.0"?> <rdf:RDF xmlns="http://www.semanticweb.org/amin/ontologies/2021/0/untitled-ontology-33#" xml:base="http://www.semanticweb.org/amin/ontologies/2021/0/untitled-ontology-33" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <owl

OWL: scoped domain and range

落爺英雄遲暮 提交于 2021-01-05 07:52:25
问题 What is the difference between scoped domain and domain ? Also scoped range and range . And how is it defined in Protege for a single property to have two different scoped domains or scoped ranges? P.S. I mean using two different scoped domain means: R has range B if domain is A R has range D if domain is C 回答1: The fact that the domain of the object property R is A could be written in this way: R some owl:Thing SubClassOf A The fact that the range of the object property R is B could be