ontology

SWRL tab in Protege 4

好久不见. 提交于 2019-12-02 21:27:40
The protege SWRL tab is not available in Protege 4 versions, I have tried both protege 4.1 and protege 4.2. The axiome plugin mentioned to edit the SWRL rules in protege has been said to work only in protege 3 versions. Can anyone tell me plugins or procedure to include the plugin to edit SWRL rules in protege? SWRL rules can be edited in Protégé 4, but not with a nice interface like in Protégé 3. If you go to menu Window -> Views -> Ontology views, there is an option Rules. Select it and add it as a "view", i.e., a rectangle in the current tab. Rules are written like this: parent(?x,?y),

Which Triplestore for rapid semantic web development?

老子叫甜甜 提交于 2019-12-02 17:20:36
Ease of installation/use is the most important factor here - not performance. Small is OK as large datasets are not expected. I'd also recommend sesame , its lightweight, pretty easy to install, and provides good performance for small datasets. Query performance is far better with Sesame 1.2.x than Sesame 2.x because of the addition of context support to the 2.x series. I've tested sesame installation/deployment with tomcat, resin, and jetty, and it worked easily with all of them. I don't recommend the bindings to RDBMS components such as Postgres or MySQL, at least in the 1.x series,

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

五迷三道 提交于 2019-12-02 16:46:11
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? Joshua Taylor The first two of these, DatatypeProperty and ObjectProperty, describe what kind of values a triple with the property should have. Datatype properties relate individuals to literal data (e.g., strings, numbers, datetypes,

Inferring knowledge in OWL by counting properties

坚强是说给别人听的谎言 提交于 2019-12-02 16:29:15
问题 I have an ontology with Person and City classes. People travel to cities and this travel is represented in the traveledTo object property. I'd like to add a WorldTraveler class. People are world travelers if they have traveled to 2 or more cities. How can I do this in my ontology? @prefix : <http://www.semanticweb.org/chris/ontologies/2017/9/untitled-ontology-64#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xml: <http:

why protege doesn't infer a data property in this case

妖精的绣舞 提交于 2019-12-02 13:00:01
I have a class Rates1.0 that is a sub class of the class the has a value 1.0f for the predicate ratesBy as the following: <!-- http://semanticrecommender.com/rs#Rates1.0 --> <owl:Class rdf:about="http://semanticrecommender.com/rs#Rates1.0"> <rdfs:subClassOf rdf:resource="http://semanticrecommender.com/rs#Rates"/> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://semanticrecommender.com/rs#ratesBy"/> <owl:hasValue rdf:datatype="http://www.w3.org/2001/XMLSchema#float">1.0</owl:hasValue> </owl:Restriction> </rdfs:subClassOf> </owl:Class> the predicate ratesBy is both data

Data range expression for an enumeration in Protégé

拈花ヽ惹草 提交于 2019-12-02 12:20:06
I would like to define the range of a data type property as an exhaustive enumeration of strings, in a way that an individual could have as value of this property only one of the strings in the enumeration. For example, a data type property called "color", which can assume only 3 values: "Red", "Green" and "Blue". I'm using OWL 2, and Protégé 5.0. Is there an easy way of doind that using Protégé? I don't seem to be able to find an exact duplicate question, though I think that this may have been asked before. In Protege, you can use a datatype expression to represent an enumeration of literals.

Extract all parents of a given node

拈花ヽ惹草 提交于 2019-12-02 10:07:58
I'm trying to extract all parents of a each given GO Id (a node) using EBI-RDF sparql endpoint , I was based on this two similar questions to formulate the query, here're two examples illustrating the problem: Example 1 ( Link to the structure ): biological_process (GO:0008150) |__ metabolic process (GO:0008152) |__ methylation (GO:0032259) In this example, using the following query: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX dc

how to do reasoning in Jena via Sparql Query

拥有回忆 提交于 2019-12-02 09:31:46
I'm using Jena and Sparql to query the ontology file. I have class Tag with two subclasses : C++ and Java. class Subject with several subclasses, which stand for particular University subjects: "C++ programming","System programming", "Java programming" etc. ObjectProperty "hasTags" domain:Subject range:Tag. Each class subject has some tag like "Java", "C++" When executing query SELECT ?subject WHERE { ?subject owl:equivalentClass ?restriction . ?restriction owl:onProperty ont:hasTags . ?restriction ?restrictType ont:Java } which stands for receiving all subjects with tag "Java" I succeed. So,

How could I store multiple ontologies in TDB

人走茶凉 提交于 2019-12-02 01:29:47
I am working on a project which need to save multiple ontologies in one TDB. I tried to do it in my own way, but it didn't work. Help me please..If you know how to use TDB , could you post the code applied to my code? String directory = "./111"; Dataset dataset = TDBFactory.createDataset(directory); Model tdb = dataset.getNamedModel("test1"); String source = "file:///e:/Course.rdf"; System.out.println(tdb.toString()); tdb.commit(); tdb.close(); String source2 = "file:///e:/lyx/resouces/Course1.rdf"; Model tdb2 = dataset.getNamedModel("test2");//see error1 information FileManager.get()

How to add RDF triples to an OWLOntology?

◇◆丶佛笑我妖孽 提交于 2019-12-01 21:34:06
问题 I have some data coming in from a RabbitMQ. The data is formatted as triples, so a message from the queue could look something like this: :Tom foaf:knows :Anna where : is the standard namespace of the ontology into which I want to import the data, but other prefixes from imports are also possible. The triples consist of subject, property/predicate and object and I know in each message which is which. On the receiving side, I have a Java program with an OWLOntology object that represents the