owl

Do I really need OWL reasoning?

让人想犯罪 __ 提交于 2019-12-24 08:00:28
问题 I recently asked a question about the feasibility of loading about 10 million statements into a triplestore with OWL reasoning enabled. That has lead to some StackOverflow comments as well as discussion within my research group about whether or not we really need OWL reasoning. I'll start with a real-world query that doesn't seem to require OWL reasoning. "41167-4120-0" is the NDC Code that identifies the commercial drug product "Fexofenadine hydrochloride 180 MG Oral Tablet [Allegra]" in the

OWL intersection vs union

∥☆過路亽.° 提交于 2019-12-24 07:37:44
问题 Given the following triples, are the domain and range a union or intersection or something else? <http://www.stackoverflow.com/questions/ask> rdfs:domain <http://stackoverflow.com/questions/tagged/rdf> . <http://www.stackoverflow.com/questions/ask> rdfs:domain <http://stackoverflow.com/questions/tagged/owl> . <http://www.stackoverflow.com/questions/ask> rdfs:domain <https://www.w3.org/TR/owl-ref/#Boolean> . <http://www.stackoverflow.com/questions/ask> rdfs:range <http://stackoverflow.com

While using Jena (java) or RDFLib (python), how should I find out whether to open the ontology as 'turtle' or 'xml'?

拥有回忆 提交于 2019-12-24 06:58:15
问题 Ontology files usually have extensions such as .owl or .rdf. I want to know when I should open ontologies with 'turtle' and when with 'xml' or other formats? Because it seems that each of them is useful for a type of format and unfortunately, it seems that people sometimes save files with the wrong extension. Here is a sample code in Python (but java is not very different either): g.parse('ontology.owl', format='turtle') So, how do I know here the turtle is the correct format? Thanks in

Loading YAGO Ontology with OWL API

試著忘記壹切 提交于 2019-12-24 05:53:07
问题 I’m using the OWL API (3.4.8 for compatibility reasons) for the first time, and I’m trying to load an ontology that is provided as part of the YAGO knowledge base (http://resources.mpi-inf.mpg.de/yago-naga/yago3.1/yagoSimpleTaxonomy.ttl.7z). However I keep getting the following warning: [main] WARN org.obolibrary.oboformat.parser.OBOFormatParser - LINE: 629693 Expected white space at pos: 44 LINE: <wikicat_Gardens_in_Aomori_Prefecture> rdfs:subClassOf <yagoGeoEntity> . (I just copied one

mapping between two ontologies

狂风中的少年 提交于 2019-12-24 04:56:09
问题 How could I use owl:sameas to link between two ontologies? If I have Ontology A :c rdf:type owl:Class . and Ontology B :d rdf:type owl:Class . I want to link the two ontologies with the shared concepts (:c and :d), I've read about owl:sameas but that is used inside only one ontology between instances of similar classes within the ontology. I would like to link between class :c and class :d of the two ontologies, what is the solution for that? 回答1: I've read about owl:sameas but that is used

Creating New Classes and Individuals with SWRL in Protege

旧街凉风 提交于 2019-12-24 04:31:14
问题 I've been trying to write SWRL rules that automate creation of new entities and their assignment to classes and predicates in a Protege ontology. The code here didn't result in creation of even one individual, neither did the example in the readme work. For clarity, here is the rule I'm trying to make work: Person(?person) ^ hasSSN(?person, ?ssn) ^ swrlx:makeOWLThing(?patient, ?person) -> Patient(?patient) ^ hasPID(?patient, ?ssn) In this ontology: @prefix : <http://www.semanticweb.org

Creating New Classes and Individuals with SWRL in Protege

坚强是说给别人听的谎言 提交于 2019-12-24 04:31:07
问题 I've been trying to write SWRL rules that automate creation of new entities and their assignment to classes and predicates in a Protege ontology. The code here didn't result in creation of even one individual, neither did the example in the readme work. For clarity, here is the rule I'm trying to make work: Person(?person) ^ hasSSN(?person, ?ssn) ^ swrlx:makeOWLThing(?patient, ?person) -> Patient(?patient) ^ hasPID(?patient, ?ssn) In this ontology: @prefix : <http://www.semanticweb.org

Extend DBpedia entity in Protege ontology

删除回忆录丶 提交于 2019-12-24 04:00:16
问题 I'm using Protege to develop an ontology that will include some things that are already described in DBpedia. Let's say I want to include a class 'Cities' and have 'Berlin' as an individual. My Berlin will have some properties the DBpedia Berlin doesn't but otherwise I'd like to 'reuse' DBpedia's Berlin. Do I need to define my own Berlin and then use rdf:seeAlso or can I somehow import DBpedia's Berlin and add some properties? 回答1: Just use the DBpedia IRI, If it's sufficient to simply talk

Pull string from RDF node

时光毁灭记忆、已成空白 提交于 2019-12-24 03:13:02
问题 Im trying to get the data in a more readable format when using a SPARQL query with Jena, however I have no idea how to extract the data in a proper way. As for now, the output is: "http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#SaucelitoCanyon" Where instead would like to just have the "SaucelitoCanyon" as a output. public JenaQuery() { String wineRegion = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n" + "PREFIX owl: <http://www.w3.org/2002/07/owl#>\n" + "PREFIX xsd:

how to create aggregation on a graph from CONSTRUCT

倖福魔咒の 提交于 2019-12-24 00:54:49
问题 This is my query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rs: <http://www.welovethesemanticweb.com/rs#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> construct { ?subject0 rs:similarityValue ?similairty0. ?subject1 rs:similarityValue ?similairty1 } WHERE { { ?subject0 ?predicate0 ?object0. rs:Impromptu_No._1 ?predicate0 ?object0. ?predicate0 rs:hasSimilarityValue ?similairty0Helper. BIND(?similairty0Helper * (4/9) AS ?similairty0) FILTER (?subject0 != rs