ontology

How to create an ontology from raw data (CSV)?

笑着哭i 提交于 2020-01-10 02:06:22
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.

How to create an ontology from raw data (CSV)?

旧街凉风 提交于 2020-01-10 02:05:11
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.

coalesce not working in this example

≡放荡痞女 提交于 2020-01-06 18:38:36
问题 This is my minimum data: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rs: <http://www.SemanticRecommender.com/rs#> PREFIX mo: <http://www.musicontology.com/mo#> PREFIX : <http://www.musicsemanticontology.com/mso#> mo:5th_symphony_for_beethoven a mo:GermanSymphony . :symphonyFestival2016 a rs:TemporalContext ; rs:appliedOnItems mo:GermanSymphony ; rs:canBeRecommendedFrom "2016-07-01T00:00:00-00:00"^^xsd:dateTime ; rs

Inference in protége

大憨熊 提交于 2020-01-06 17:58:36
问题 I'm building an ontology to find peoples' skills. I want to infer that when a person A passed a course B and course B provides skill C, then person A has skill C. Is there a way to do this in Protégé? 回答1: Sure, you're saying that when you have: A &rightarrow; passed B &rightarrow; providesSkill C you want to infer that A &rightarrow; hasSkill C You can do that with the subproperty chain axiom: passed &bullet; providesSkill &sqsubseteq; hasSkill For a more detailed example of how to add these

Jena Ontology API how to retrieve axiom that attach annotation to a class property relation

不想你离开。 提交于 2020-01-03 05:23:10
问题 I have annotated the relationship described below TV subClassof : Restriction {hasFeature some PowerConsumption} ::: @isNegative=true. The TV class has a Object property called hasFeature with values in class PowerConsumption . The annotation is applied to this property relation. The OWL file gets added with the following axiom to represent the added annotation. How can I retrieve this axiom and get the annotation value of isNegative using Jena? <owl:Axiom> <isNegative>true</isNegative> <owl

How do owl and rdfs property domain range work?

五迷三道 提交于 2020-01-03 04:16:35
问题 I am trying to understand the semantics of rdfs domain and range. Because I am from an object oriented background, I am struggling to understand the semantics and how to validate data against the rdfs statements. Here is a sample file in turtle format: PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix tmpl: <http://template.example.com/> prefix data: <http://data.example.com/> tmpl

RDF Schema - how to create instances?

╄→гoц情女王★ 提交于 2020-01-02 09:58:47
问题 I want to have instances of classes in my RDFS file, but I don't know how to do it. My class: <rdfs:Class rdf:ID="Turns"> <rdfs:range rdf:resource="Literal"/> </rdfs:Class> My property: <rdf:Property rdf:ID="has_Turns"> <rdfs:domain rdf:resource="#Device"/> <rdfs:range rdf:resource="#Turns_Frequency"/> </rdf:Property> I want to get an instance of class "Turns" with a "has_Turns" property. I tried something like this: <Turns_Instance rdf:ID="Turns">…</Turns_Instance> … but it takes that the

Jena: How to infer data / performance issues

喜欢而已 提交于 2020-01-02 03:40:05
问题 I'd like to use Jena's inference capabilities, but I'm having some performance problems when I am using InfModel. Here's a simplified overview of my ontology: Properties: hasX (Ranges(intersection): X, inverse properties: isXOf) |-- hasSpecialX (Ranges(intersection): X, inverse properties: isSpecialXOf) isXOf (Domains(intersection): X, inverse properties: hasX) |--isSpecialXOf (Domains(intersection): X, inverse properties: hasSpecialX) Furthermore there's a class 'Object': Object hasSpecialX

RDFS: same property for multiple domains

房东的猫 提交于 2020-01-01 07:03:32
问题 I have an RDFS ontology with two completely separate classes: User and Venue . I want them both to have names which are provided through a property called hasName , which for a User should look similar to: <rdf:Property rdf:ID="hasName"> <rdfs:comment> Comment here. Blah blah blah. </rdfs:comment> <rdfs:domain rdf:resource="#user"/> <rdfs:range rdf:resource="Literal"/> </rdf:Property> However, if I want it for a Venue as well, it doesn't validate. How should I approach this? 回答1: You can in

In Semantic Web, are OWL EL, RL, QL all instances of DL? What is the difference? More inside

爷,独闯天下 提交于 2020-01-01 02:45:34
问题 I'm using the pellet reasoner on a number of ontologies and have run the info method on a list of IRIs (in this case URLs). The two metrics that interest me are the DL Expressivity and OWL Profile. The OWL Profiles I'm getting range from "OWL 2," "OWL 2 DL," "OWL 2 EL," "OWL 2 QL," "OWL 2 RL." When is says "OWL 2," does that mean the ontology is OWL 2 full? Are all the other variations DL? I have found a spec describing the different profiles (table 10 especially) [as a new user I can't post