owl

Jena Fuseki assembler file + TDB + OWL reasoner

末鹿安然 提交于 2019-12-12 09:02:24
问题 I am having a problem configuring Jena Fuseki using an assembler file. Up until recently I had been starting the server from the command line as follows: sudo ./fuseki-server --loc=la --port=3032 --update /ds This creates a persistent TDB store located in the directory SERVER_ROOT/la. The server starts correctly and displays the following output: 14:30:55 INFO TDB dataset: directory=la 14:30:55 INFO Dataset path = /ds 14:30:55 INFO Fuseki 1.0.1 2014-01-18T19:01:20+0000 14:30:55 INFO Started

SPARQL Querying Transitive

最后都变了- 提交于 2019-12-12 07:26:41
问题 I am a beginner to SPARQL and was wondering if there was a query which could help me return transitive relations. For example the n3 file below I would want a query that would return "a is the sameas c" or something along those lines. Thanks @prefix : <http://websitename.com/links/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . :a owl:sameas :b. :b owl:sameas :c. 回答1: You can use property paths if you are using a suitably enabled SPARQL 1.1 engine, you've tagged your question Jena so I

Same sparql not returning same results

纵饮孤独 提交于 2019-12-12 06:56:05
问题 I'm using the same sparql statement using two different clients but both are not returning the same results. The owl file is in rdf syntax and can be accessed here. This is the sparql statement: PREFIX wo:<http://purl.org/ontology/wo/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select ?individual where { ?individual rdf:type wo:Class } I'm using it using top braid and the following python program: >>> import rdflib >>> import rdfextras >>> rdfextras.registerplugins() >>> g

DL; returning classes with max 1 and not exactly 0

风格不统一 提交于 2019-12-12 06:16:30
问题 Let's have an OWL-DL ontology considering only the TBox (no individuals) and Let's consider Chinesefamily hasChilren max 1 SterileChinesefamily subClassOf Chinesefamily SterileChinesefamily hasChilren exactly 0 The expression hasChilren max 1 will return Chinesefamily and SterileChinesefamily as sub classes Well, how to specify classes that may have 0 or 1 children ( Chinesefamily ) but must not have exactly 0 children ( SterileChinesefamily ) I tried hasChilren max 1 and not hasChilren

How to write DL queries using java [closed]

拥有回忆 提交于 2019-12-12 05:29:49
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . How do I connect an ontology using java? I have created an ontology using protege. How can I write DL queries in Java to use this ontology? 回答1: You should take a look at the OWL API and Pellet. 回答2: DL queries are simply OWL class expressions. You can use the OWL-API as

SWRL : ^ not work on protege 4.3

為{幸葍}努か 提交于 2019-12-12 04:59:21
问题 I'm trying to add a SWRL rule to protege using conjuction sign ^ but Protege 4.3 does not approve that sign. This issue is also present for swrl buildins such as swrlb:lessThanOrEqual . What's wrong with ^ ? May I use , instead? 回答1: The terms in the Protege SWRL editor are separated by commas, not ^. See, for instance, the screenshots in my answer to SWRL rules in protege 3.4.8. whats wrong with ^ ? may i use , instead ? That the answer, yes. I'm not sure what prevented you from trying it in

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

Problems querying OWL ontology through OWL API

巧了我就是萌 提交于 2019-12-12 04:39:48
问题 I have the ontology used in the OWL API examples. private static final String KOALA = "<?xml version=\"1.0\"?>\n" + "<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=\"http://protege.stanford.edu/plugins/owl/owl-library/koala.owl#\" xml:base=\"http://protege.stanford.edu/plugins/owl/owl-library/koala.owl\">\n" + " <owl:Ontology rdf:about=\"\"/>\n" + " <owl:Class rdf:ID=\

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

Protege datatype restriction

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:29:08
问题 I have populated my ontology with data defining among others Hour. Now, I want to make a restriction on that specific datatype (hour) which is defined as int and has values from 0-23. The restriction would be set on the division of the hour according to day and night for example (hour min 6 int) and (hour max 17 int) for the day and that defined as object Property isDay, but the problem is the inferences does not happen. Thank you in advance, Eliot 回答1: You can create a :DayEvent class as