ontology

How to add RDF triples to an OWLOntology?

与世无争的帅哥 提交于 2019-12-01 18:23:26
I have some data coming in from a RabbitMQ. The data is formatted as triples, so a message from the queue could look something like this: :Tom foaf:knows :Anna where : is the standard namespace of the ontology into which I want to import the data, but other prefixes from imports are also possible. The triples consist of subject, property/predicate and object and I know in each message which is which. On the receiving side, I have a Java program with an OWLOntology object that represents the ontology where the newly arriving triples should be stored temporarily for reasoning and other stuff. I

Using enumerated data type in defining property value for individual in Protege

故事扮演 提交于 2019-12-01 13:27:57
At first I want to mention that I am new in ontology and protege. I try to develop an ontology using protege 5.0. I defined some data properties with enumerated range which I defined in data range expression like this: {"Balanced" , "Clever" , "Energetic" , "Lazy" , "Talkative"}. Now I want to define an individual and want to choose a value from the range I defined above as filler for a datatype property. How can I do this? thanks for your help in advance It is not possible to declare an individual from that range, because datatype ranges are composed of literals, not individuals. If you want

How to properly merge 2 ontologies with OWL API 4 or 3.5

扶醉桌前 提交于 2019-12-01 12:03:26
in my master thesis project I want to merge several ontologies (filled only with individuals) having different namespaces, but sharing the same imports and some individuals(e.G ontologyA#Harold & ontologyB#Harold). I'm trying to gain a new merged ontology where: the ontology header's information of the 2 ontologies are preserved (like in Protege 5 with OWL API 3.5.1). Individuals from merged ontologies are "merged" despite their different namespaces The merged ontology has only 1 namespace My code for the merging private ArrayList<Ontology> ontologies; private OWLOntologyManager man; private

OWL type inference with a restriction

有些话、适合烂在心里 提交于 2019-12-01 11:02:53
I am studying the notion of OWL restrictions with Protege 4 using FaCT++ and a trivial ontology. Suppose I have an individual foo of class Something : :Something a owl:Class. :foo a :Something, owl:NamedIndividual. and another class defined from a restriction on the hasBar property: :hasBar a owl:ObjectProperty. :SomethingElse owl:equivalentClass [a owl:Restriction; owl:onProperty :hasBar; owl:allValuesFrom :Something]. If I assert that: :x :hasBar :foo. why can't I infer from it that x is a SomethingElse (via the fact that foo is a Something )? The only way I can make it work is if the range

How to properly merge 2 ontologies with OWL API 4 or 3.5

旧城冷巷雨未停 提交于 2019-12-01 09:57:46
问题 in my master thesis project I want to merge several ontologies (filled only with individuals) having different namespaces, but sharing the same imports and some individuals(e.G ontologyA#Harold & ontologyB#Harold). I'm trying to gain a new merged ontology where: the ontology header's information of the 2 ontologies are preserved (like in Protege 5 with OWL API 3.5.1). Individuals from merged ontologies are "merged" despite their different namespaces The merged ontology has only 1 namespace My

How to force a class to have exactly one of a given property

你说的曾经没有我的故事 提交于 2019-12-01 09:30:53
I have a class Person, and a set of data properties: First_Name, Surname, Gender, DoB, Country_of_Birth. The data properties have their Domains set to Person. What i would like to set up in my ontology is a rule which states that every Person must have exactly 1 of each of these properties. So in Protege, I set up Person as a subclass of "First_Name exactly 1 xsd:string", "Surname exactly 1 xsd:string" and so on. I then set up an Individual with a Surname, but no First_Name, Gender etc. I then run the reasoner. What I would expect is for it to throw a fit about inconsistency (Surname is being

OWL type inference with a restriction

孤人 提交于 2019-12-01 07:51:25
问题 I am studying the notion of OWL restrictions with Protege 4 using FaCT++ and a trivial ontology. Suppose I have an individual foo of class Something : :Something a owl:Class. :foo a :Something, owl:NamedIndividual. and another class defined from a restriction on the hasBar property: :hasBar a owl:ObjectProperty. :SomethingElse owl:equivalentClass [a owl:Restriction; owl:onProperty :hasBar; owl:allValuesFrom :Something]. If I assert that: :x :hasBar :foo. why can't I infer from it that x is a

How to force a class to have exactly one of a given property

帅比萌擦擦* 提交于 2019-12-01 07:15:29
问题 I have a class Person, and a set of data properties: First_Name, Surname, Gender, DoB, Country_of_Birth. The data properties have their Domains set to Person. What i would like to set up in my ontology is a rule which states that every Person must have exactly 1 of each of these properties. So in Protege, I set up Person as a subclass of "First_Name exactly 1 xsd:string", "Surname exactly 1 xsd:string" and so on. I then set up an Individual with a Surname, but no First_Name, Gender etc. I

Semantic web application - using BBC Sports ontology

本秂侑毒 提交于 2019-12-01 00:36:31
I am trying to make a semantic web application about running races in my area (10k, half marathons, marathons). More specifically I want to collect and publish (in RDF) data about races, participants and results, and merge similar data. The last few weeks I have been testing Jena (including TDB), doing some web scraping from static web sites about running races and reading about vocabularies and ontologies. I think the most reputable ontology to use for my application, and also the one with the lowest barrier to entry (not very over-engineered), is the BBC sports ontology. http://www.bbc.co.uk

How to extend ontology with other standard ontologies in Protégé?

你。 提交于 2019-11-30 20:33:37
I am building an ontology using Protégé, but wan to extend it with other standard ontologies such as frbr, prov, and org. Is there a standard way to integrate our ontology with these standard ontologies or can we merge these ontologies with each other? I want to do these tasks using Protégé. Joshua Taylor Unless I'm missing something about your question (which didn't really provide enough information to diagnose the problem that you're actually having), this is what owl:imports is for. You can import other (OWL) ontologies into your own. In Protégé, you just use the Ontology imports under the