ontology

How to clone or copy a Jena-Ontology-Model (OntModel) to apply temporary changes?

浪尽此生 提交于 2021-02-19 03:58:13
问题 I've been searching for a solution for days now and since there is no forum at Apache Jena I had to create an account at stackoverflow to ask. My problem is that I need a temporary (deep) copy of an already loaded ontology, namely an object of OntModelImpl (with some imports but without any attached inference machine). Its purpose is to apply some validation steps on the model which require some SPARQL UPDATE queries to add some automatically generated triples first. These additional triples

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

RDFS, Jena: how to query taking ontology into account

被刻印的时光 ゝ 提交于 2021-02-10 19:12:14
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

风流意气都作罢 提交于 2021-02-10 19:12:00
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

跟風遠走 提交于 2021-02-10 19:11:25
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

三世轮回 提交于 2021-02-10 19:10:58
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

此生再无相见时 提交于 2021-02-10 19:10:40
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

Deadly 提交于 2021-02-10 19:08:52
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

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