owl

How to create owl file using JENA?

雨燕双飞 提交于 2019-12-04 17:03:12
I am stuck in the middle of ontology creation. I want to create an OWL file using Java which is my objective. I have created the hierarchical clusters but now I have to use those clusters in ontology creation. Thanks in advance. I have tried this so far. I got Dickinson's point. Now this is my code and I am getting an Exception as Exception in thread "main" com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs can be included in RDF/XML output: Code: 57/REQUIRED_COMPONENT_MISSING in SCHEME: A component that is required by the scheme is missing. JenaOwl.java public class

Programatically generating assemblies from OWL files with ROWLEX

拜拜、爱过 提交于 2019-12-04 16:32:22
I have been using the ROWLEX library to handle RDF-s. It is shipped with a designtime GUI tool called OwlGrinder.exe that can generate C# helper classes (.NET assemblies to be exact) from my OWL ontologies. I wonder if anyone knows if I could do the same programatically in runtime. ROWLEX just became open source, so now you have the chance to actually look inside the code of OwlGrinder.exe and copy the code from there. However, here is a short example: private NC3A.SI.Rowlex.AssemblyGenerator generator; private void RunAssemblyGeneration(XmlDocument ontologyFileInRdfXml) { this.generator = new

OWL Ontology Predicate Logic with Jena

可紊 提交于 2019-12-04 16:01:36
I'm having trouble expressing the following situation in my Ontology: Suppose I have four people voting and four votes (so there is a one-to-one mapping between vote and voter). People can either vote yes or no. If I know the outcome of three people's votes, I ought to be able to deduce the fourth person's vote. So to reiterate: John, Bob, Mary, and Carol each vote. Since there are four people there are four votes. The outcome of the vote is a tie (2 yes, and 2 no). Later on the reasoner determines that Bob and John voted no. The reasoner should then be able to deduce that Mary and Carol voted

RDF and OWL workflow question

痞子三分冷 提交于 2019-12-04 15:32:03
问题 I have been looking at and playing with OWL through Protege and I would like to know if I understand the "workflow" and idea of it correctly (for building up a database from scratch: Generate an OWL ontology for your data using Protege or equivalent Export this schema to RDF Use the classes defined as some of the elements in a triplestore along with your target data Export your triplestore to RDF Use openRDF/sesame or Jena to load the defined data and ontology Validate your RDF triplestore

Representing Natural Language as RDF

家住魔仙堡 提交于 2019-12-04 09:16:30
问题 How much of the concepts conveyed in natural language is RDF/OWL able to represent? I'm still learning RDF and other semantic technologies, but as I currently understand it, information is typically represented as triples of the form (subject,predicate,object). So I can imagine how the sentence "Bob has a hat" might be represented. However, how would you represent a more complicated sentence like "Bob, over on 42nd street, will have a job at the Mall after the owner approves"? Are there

map owl file into neo4j - getOrCreateNodeWithUniqueFactory method

房东的猫 提交于 2019-12-04 09:00:48
I try to move an ontology (*.owl file) into neo4j to do queries on it. I found some helpful information here but I am facing with issues in this line: Node thingNode = getOrCreateNodeWithUniqueFactory("owl:Thing"); I don't know to which class the " getOrCreateNodeWithUniqueFactory " belongs. Is this available in some library or should I implement it by myself? What am I missing here? There are several ways to create unique nodes. The probably easiest is to use the UniqueFactory as seen in the Neo4j docs under http://docs.neo4j.org/chunked/milestone/tutorials-java-embedded-unique-nodes.html

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

白昼怎懂夜的黑 提交于 2019-12-04 08:43:05
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#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <rdf:RDF xmlns="http://www

What is the difference between DatatypeProperty, ObjectProperty, & FunctionalProperty, and when should I use them?

戏子无情 提交于 2019-12-04 07:48:34
问题 When writing an ontology, there are several very commonly used types, including: DatatypeProperty ObjectProperty FunctionalProperty InverseFunctionalProperty The first three kinda look like they'd be used in a particular set of ways, but I find my idea of them being challenged by how I've seen them used in FOAF. When should each of them be used or not be used? 回答1: The first two of these, DatatypeProperty and ObjectProperty, describe what kind of values a triple with the property should have.

OWL Property Restrictions vs. SHACL

北慕城南 提交于 2019-12-04 06:49:47
Given a choice between OWL Property Restrictions and SHACL , is there any reason to choose the OWL approach any more? Particularly with respect to cardinality constraints, I'm wondering whether SHACL is considered to supercede OWL. The syntax appears similar, to my casual inspection. I am probably missing the purpose of OWL cardinality constraints. As part of an ontology, they should facilitate inferencing (a separate concern from validation). But how do cardinality constraints facilitate inferencing? The differences between OWL and SHACL are presented in the table below. | OWL | SHACL | |----

How to enable Pellet in Protege 4.3.0?

北城余情 提交于 2019-12-04 06:01:46
问题 It's almost a year since Unable to download Pellet plugin for Protege 4.3 suggested that it's not available for this version. Has anything changed? 回答1: It should be possible to download it from their github and just drop it into Progégé's plugins folder: https://github.com/Complexible/pellet/raw/master/protege/plugin/com.clarkparsia.protege.plugin.pellet.jar 来源: https://stackoverflow.com/questions/35663220/how-to-enable-pellet-in-protege-4-3-0