ontology

Represent UML diagram in OWL

夙愿已清 提交于 2019-12-12 04:59:14
问题 I have two classes Person and Vehicle having owns as relation between them. There is 1 to many relation between them like one person can own many vehicles. Person has attribute 'name' (person name) and vehicle also has attribute 'name' (brand name). Question is how to model this in OWL using protege editor? If there is an attribute on ' owns ' relation saying ' DateOfPurchase ' how to represents this in OWL ? 回答1: Object properties in OWL describe relation between individuals, not between

405 HTTP method PUT is not supported by this URL

拜拜、爱过 提交于 2019-12-12 03:46:35
问题 I started Fuseki server using this configuration: @prefix : <#> . @prefix fuseki: <http://jena.apache.org/fuseki#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix sdb: <http://jena.hpl.hp.com/2007/sdb#> . [] rdf:type fuseki:Server ; fuseki:services ( <#memory> <#tdb> #<#mysql> ) . # Custom code. [] ja

Take name and count number of sibling classes in generated ontology using Java

人盡茶涼 提交于 2019-12-12 03:36:14
问题 I first generated the ontology. It was successful. Then, I want to take sibling classes name for each class and count number of sibling classes of each class in the generated ontology.As a example, Main super class- A Two sub classes of A - B , C Three sub classes of B- D, E I tried using following code. I used getSuperClass to get the super class, and then getSubClass to get the subclasses of that. I used arraylist for first take name of each sibling classes. So, in above example output

How to express this individual in Description logic

ε祈祈猫儿з 提交于 2019-12-12 03:19:08
问题 I want to express this in dl, Protege view. How can I express the individual inclusive gateway1 which is from type inclusiveGateway? {inclusiveGateway} ≡ (inclusivegateway1) (inslusiveGateway2) name: inclusiveGateway id: inclusiveGateway1 gatewaydirection: unspec if a object property exists: flowsinto: task1 Couldn't find an example how to do it for this case, just some equivalanceRelation for different classes, eg. Man≡ Person 回答1: The problem that you mostly got no answer is that your

OWL-API : Identify owl format based on its string contents

女生的网名这么多〃 提交于 2019-12-12 02:14:19
问题 I have owl files with different formats (RDF/XML , Turtle, Manchester OWL Syntax). I want to identify the format based on its contents as different format has its own style. E.g RDF/XML : <?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#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >]> <rdf:RDF xmlns="namespace#" xml:base="namespace"

Recursive object property in owl

☆樱花仙子☆ 提交于 2019-12-12 00:13:59
问题 Can we model an object property to be recursive in owl? If not is there any work around? E.g. I want to define workflow as a class in owl. Task and getSubTasks are class and object property in my ontology respectively. I want to model workflow as combination of task and getSubTasks fetched recursively. 回答1: It sounds like you want to declare that getSubTasks , or some superproperty of it, is a transitive property, which you can do in OWL. E.g., if you have a class Task , a property

Difference between rdf:seeAlso and rdfs:seeAlso

空扰寡人 提交于 2019-12-11 21:30:05
问题 What is the difference between rdf:seeAlso and rdfs:seeAlso ? When I can use rdf:seeAlso and when I can use rdfs:seeAlso ? Can you do any examples? 回答1: First, note that rdf and rdfs are prefixes commonly used to reference the RDF syntax and RDF schema vocabularies respectively. The rdf is typically used for http://www.w3.org/1999/02/22-rdf-syntax-ns#, so that rdf:seeAlso would expand to http://www.w3.org/1999/02/22-rdf-syntax-ns#seeAlso. However, if you follow the vocabulary reference, you

Protege 4 - Saving RDF reformats nested blank nodes

为君一笑 提交于 2019-12-11 19:22:16
问题 I just switched from TopBraid to try out Protege. I have an ontology with some RDF that resembles this: instances:some_thing1 a semapi:SomeClass ; semapi:hasChainTo ( [ a semapi:SomeOtherClass ; semapi:hasChainTo ( [ ... ] [ ... ] ) ] ) . The idea is that this nested blank nodes syntax works great because the chains get very deep and this syntax is fluid and highly readable and maintainable as the chains may change from time to time and new chains can be added. Not only that, but I have

comparing an classes of ontologies to an xml document nodes

走远了吗. 提交于 2019-12-11 17:46:59
问题 My objective is to compare an ontology to a provided XML document by searching nodes from the document having the same name as the ontology classes. To do so, I use the following code : public void freqConcept(String xmldoc,OWLClass node){ try { String filepath = xmldoc; DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.parse(filepath); doc.getDocumentElement().normalize(); list =

getLiteral returns null when reading RDF file using jena

别说谁变了你拦得住时间么 提交于 2019-12-11 16:45:33
问题 I have been reading about OWL ontology and RDF files all these days. I still can't understand this. Let's say I created a simple ontology using Protege. It has single class called Review with two data properties which are comment and rating. Now I want to create a separate RDF file written in xml which has some comments. The file I created look like <?xml version="1.0"?> <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:c