protege

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

General class Axioms

a 夏天 提交于 2019-12-12 03:19:09
问题 OWL AXIOM expressions: Given : owl:class sport Output: in addition to the existing owl:object properties i want to add the owl:object property player with the value Peter to every instance from type owl:class sport. That means that every individual from type owl:class sport should have this object property inherited with the value Peter. My first thought was to express it with a general class axiom. Here i am not really sure whether this a) possible and b) better to do it with a SPARQL update

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"

Complex conditional element in accumulate in Jess rules

会有一股神秘感。 提交于 2019-12-12 01:54:46
问题 I am trying to find average value of temperature observations in JessTab which requires joining facts from multiple classes. The following rule: (defrule averageOfObsValue ?res <- (accumulate (progn (bind ?s 0)(bind ?n 0)) (progn (bind ?s (+ ?s ?v)) (++ ?n)) (create$ ?n ?s ?qo) (and (object (is-a http..#ObservationValue) (OBJECT ?ov) (http..#hasDataValue ?v) ) (object (is-a http..#SensorOutput) (OBJECT ?so) (http..#hasValue ?ov) ) (object (is-a http..#Observation) (OBJECT ?o) (http..

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

Referring to a concept in a not-imported ontology

二次信任 提交于 2019-12-11 15:26:08
问题 I want to refer to concepts defined in other ontologies, using only the respective concepts URI, without importing the outer ontology . I think that this is compatible with OWL semantics, using owl:equivalentTo property. Can somebody confirm that this is correct? Furthermore, could someone provide me with an example on how to do it (preferably using Protege)? 回答1: Assume there is an ontology anOnt: in which there is a term anOnt:Term that you want to reuse in your ontology yourOnt: . You may

Use RDF API (Jena, OpenRDF or Protege) to convert OpenIE outputs

醉酒当歌 提交于 2019-12-11 11:26:23
问题 I was recommended to use one of the APIs (Jena, OpenRDF or Protege) to convert the outputs that I generated from OpenIE4.1 jar file (downloadable from http://knowitall.github.io/openie/). The following is the sample OpenIE4.1 output format: confidence score followed by subject, predicate, object triplet The rail launchers are conceptually similar to the underslung SM-1 0.93 (The rail launchers; are; conceptually similar to the underslung SM-1) I planned to produce triples that follow this

SPARQL - how to get individual data property from linked individual

早过忘川 提交于 2019-12-11 10:53:32
问题 I build this ontology in protege. I have this individual ev001 that has these types Room , hasRoom only {rm001} and rm001 has data property roomName "room 1"^^xsd:string . Right now I have a SPARQL query that returns Event Room RoomName ev001 {rm001} My question is, how to get the room name from there, here is my query so far SELECT ?event ?room ?roomname WHERE { ?x owl:onProperty base:hasRoom . ?event a base:FilmScreening ; a ?x . ?x owl:allValuesFrom ?room . } Any advice is appreciated,

How to infer individual with more than 2 property in owl

蹲街弑〆低调 提交于 2019-12-11 10:46:20
问题 I have an ontology with Person and Animal_Lover classes. People are Animal_Lover if they have more than 2 pet. How can I do this in my ontology? <?xml version="1.0"?> <rdf:RDF xmlns="http://www.example.com/test" xml:base="http://www.example.com/test" xmlns:test="http://www.example.com/test#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs

How to import geosparql to your ontology?

守給你的承諾、 提交于 2019-12-11 10:43:16
问题 Based on this: How to extend ontology with other standard ontologies in Protégé?, I am really worried on how to import geosparql in an ontology I just created. I think that importing geosparql means to import this to my ontology in Protege: http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf My ontology is Saved As RDF/XML syntax and the file that contains it has a .owl extension. How to safely import geosparql in my ontology (Protege 5.0.0 beta)? 回答1: Both .rdf and .owl are