owl

uml Composition relationships to RDF and OWL

爱⌒轻易说出口 提交于 2019-12-14 02:06:08
问题 I'm beginner in RDF and OWL ontologies. I'm trying to transform this diagram into OWL syntax. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:dc="http://purl.org/dc/elements/1.1/" > <!-- OWL Class Definition - Robot Position --> <owl:Class rdf:ID="house" /> <owl:Class rdf:ID="room" /> <owl:Class rdf:ID="kitchen" /> <owl:Class rdf:ID="garden" /> <owl:Class rdf:ID="table" /> <owl

Removing unwanted superclass answers in SPARQL

ⅰ亾dé卋堺 提交于 2019-12-14 01:21:17
问题 I have an OWL file that includes a taxonomic hierarchy that I want to write a query where the answer includes each individual and its immediate taxonomic parent. Here's an example (the full query is rather messier). @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rdf: <http:://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix : <urn:ex:> . :fido rdf:type :Dog . :Dog rdfs:subClassOf :Mammal . :Mammal rdfs:subClassOf :Vertebrate . :Vertebrate rdfs:subClassOf :Animal . :fido

SWRL and Virtuoso

牧云@^-^@ 提交于 2019-12-13 21:29:07
问题 I'm looking for a clear approach to use SWRL clearly in virtuoso server. For example, I designed an ontology using Protege 4.3 and I wrote the SWRL rules using Rules tab in Protege. Product(?P),hasName(?P,?N),inGroupB(?P,?B)->hasBug(?P) I uploaded my RDF data (~3GB) into Virtuoso server, along with the Ontology schema. I tried to recall the data that is supposed to be inferred based on the Rules in the ontology but the query return empty results. Example of the SPARQL query that it should

Defining a property whose range is an ordered list

女生的网名这么多〃 提交于 2019-12-13 20:09:01
问题 Given two classes Container and Element , I would like to define a property contains to describe the contents of a Container . However, the order of Elements is important, so I can't simply write _:container :contains _:element1, _:element2, _:element3 . How can I define the contains property correctly? I've looked at rdf:List and owl:Seq but I don't know how to translate that into my ontology. 回答1: You can define your property in many ways depending on what your requirements and your use

Explanation about Direct Mapping to convert Many-to-Many relationship

僤鯓⒐⒋嵵緔 提交于 2019-12-13 19:01:45
问题 One of the standards from W3C for RDB2RDF is Direct Mapping. I heard that there is a problem when converting many-to-many relationship from a relational database and they say it loses semantic, I need more explanation about it. 回答1: ...there is a problem when converting many-to-many relationship from a relational database I'd say that direct mapping introduces additional "parasitic" semantics, treating normalization artefacts as first-class object. Let's consider the D011-M2MRelations

List in front of the expression in OWL?

懵懂的女人 提交于 2019-12-13 18:22:33
问题 Is it possible to have a list in front of an expression in OWL? Something like: ( :Dairy :Egg :Nut ) rdfs:subClassOf :FoodGroup . or: :Dairy , :Egg , :Nut rdfs:subClassOf :FoodGroup . Or in general, is there a syntactic sugar for a group of expressions of the type?: :Diary rdfs:subClassOf :FoodGroup . :Egg rdfs:subClassOf :FoodGroup . :Nut rdfs:subClassOf :FoodGroup . 回答1: Turtle In Turtle, there are no subject lists that would be similar to object lists. It is possible to write something

Using Jena Api in Java Web… Unknown Exception

泪湿孤枕 提交于 2019-12-13 16:04:26
问题 Did anyone encountered this exception while using Jena in Java Web Application... Please Kindly help me .. Here is my servlet code package com.mycompany.servlet; import java.io.IOException; import java.util.Iterator; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http

SPARQL and Rules for ontologies

别等时光非礼了梦想. 提交于 2019-12-13 08:56:32
问题 Is it possible to create if/then rules using SPARQL and infer new relationships on my data? For example, could I encode rules like the following? if (blood_sugar > 126 and blood_sugar < 500) then blood_sugar_level = High if (blood_sugar_level = High) then (service = adjust_insulin_dose) 回答1: The question really doesn't provide enough data to figure out exactly what you're trying to do, but you can certainly bind values based on particular conditions. For instance, the following query includes

how to define a 'co-participate' property in OWL or RDFS?

两盒软妹~` 提交于 2019-12-13 04:52:19
问题 I'd like to know how to express the concept that: if 2 agents are participants in one event, they should be linked with a symmetric property 'co-participate'. I feel I could make some restrictions but don't know how. The event ontology is defined here: http://motools.sourceforge.net/event/event.html 回答1: if 2 agents are participants in one event, they should be linked with a symmetric property 'co-participate'. You can do this in OWL2 by using a sub-property chain axiom. Since the data looks

Converting UML to OWL Ontology

為{幸葍}努か 提交于 2019-12-13 03:05:28
问题 I am trying to develop an OWL ontology based on different UML file resources presented in xmi format. Reading through the internet for a while now, it seems that almost all the available tools or approaches are outdated and even when trying some of them they don't provide the expected outcome. Since this ontology plays a really important role in our project, i wanted to know what is the best approach/tools to be used in order to convert UML to OWL ? 回答1: I have looked into this myself as well