ontology

Problems to read a owl ontology using Jena

限于喜欢 提交于 2020-03-25 17:57:18
问题 I'm trying to a read a owl ontology using Jena. The ontology was created in Protégé. This is (part of) my original .owl file (some terms are in Portuguese): <?xml version="1.0"?> <!DOCTYPE Ontology [ <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY xml "http://www.w3.org/XML/1998/namespace" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <Ontology xmlns="http://www.w3.org/2002/07/owl#" xml:base="http://james

OWL RDF/TTL Make an instance member of class based on property

人走茶凉 提交于 2020-02-03 01:58:21
问题 I am trying to design an ontology that will categorise products based on the products components. In the example below I have a class Ingredient with an instance eggs . I want to add apple_tart to all classes of products that do not contain eggs . So in this case apple_tart will be added to the class GlutenFriendly and NOT VeganFriendly . bakery:VeganFriendly rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:onProperty :hasIngredient ; owl:hasValue :eggs ] owl:disjointWith

Defining Protege class with expression of numerical data

£可爱£侵袭症+ 提交于 2020-01-28 10:58:24
问题 I am building a smart home ontology. I now have a class hierarchy like that: I want to give definitions to the subclass of 'RoomStatus'. For example, I want to define that when room temperature is in range of 18-22 Centigrade and Humidity is in range of 40-50%, then the room has a mild status. I tried to use Class Expression Editor in Protege but it doesn't work. How can I realize this definition? Thanks in advance! 回答1: Hatim's answer may work for you, but I think it might be better not to

ViSEAGO tutorial: visualising topGO object

我们两清 提交于 2020-01-25 10:14:12
问题 Earlier, I had posted a question and was able to load in my data successfully and create a topGO object after some help. I'm trying to visualise GO terms that are significantly associated with the list of differentially expressed genes that I have from mouse RNA-seq data. Now, I'd want to raise a concern about ViSEAGO's tutorial. The tutorial initially specifies loading two files: 'selection.txt' and 'background.txt'. The origin of these files is not clearly stated. However, after a lot of

How to get individuals data property value in sparql

爱⌒轻易说出口 提交于 2020-01-24 20:08:26
问题 Hi i am in new to ontologies. I have developed a restaurant ontology by Protege software. But I badly need a SPARQL query that finds property values for all individuals of a class. I want to get a result like: Angels_n_Gypsies House #30, Rd No. 19/A, Dhaka 1213, Bangladesh 回答1: Just follow the property values... SELECT ?rname ?lname WHERE { ?inst a :Popular_restaurant . ?inst :restaurant_name ?rname . ?inst :Location_name ?lname . } But that's just the end result. A way to understand SPARQL

Can OWL punning help in defining data properties on object property?

两盒软妹~` 提交于 2020-01-24 15:34:07
问题 Punning (which was introduced in OWL 2 DL) allows one to give the same name (IRI) to a Class and an Object Property (see Association Example). Can I use this way of meta-modelling to attach attributes on a relation? For instance, the relation drives connects Person and Vehicle . I want to specify the velocity with which the Vehicle is driven, and this property belongs on drives . Punning allows me to model drives as an association class by specifying both a class and an object property named

Howto get Dataproperty inherited from superclass

你说的曾经没有我的故事 提交于 2020-01-17 03:24:39
问题 I am working on my ontology using owlapi and java, but I cant find a solution in such a case: Here I have a class structure such as: Electronics Radio Handy I created individuals to these classes having the same name as their class. As Electronics class has an individual named electronics. Class: Electronics Equivalent to: keyword some {"electronics"} . Class: Handy Dataproperty: keyword Data property value: "handy" , type:string I use Hermit to search for individuals as keyword some {

Is Ontology File created in Protege with RDF/XML Format a RDF file or the OWL file?

别等时光非礼了梦想. 提交于 2020-01-13 02:45:14
问题 I have created the ontology file in the Protege and save it in the RDF/XML format. It also contains the OWL tag. So, the ontology file created by Protege and saved as RDF/XML format are actually the RDF files or the RDF form of the OWL files or the OWL format containing the RDF also or something else ? <?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#

How to create multiple relations with same object property?

…衆ロ難τιáo~ 提交于 2020-01-11 11:48:45
问题 I am using protege 5 for developing ontology. I have created has_composition as object property. In my ontology the same object_property is used for different domains and their respective range, like has_composition of A is B and has_composition of C and D is E and F. How can I model this mapping?? 回答1: OWL (Ontology Web Language, the ontology that defines ontologies) does not allow to model what you're trying to do. A workaround I can think of is to use sub-properties. Imagine the following

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

点点圈 提交于 2020-01-11 07:37:48
问题 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 回答1: It is not possible to declare an