owl

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,

Is there a Python library to handle OWL? [closed]

一曲冷凌霜 提交于 2019-12-02 17:12:09
It could be something as big as Jena or something smaller. Do you know anything? dajobe Most people use rdflib , but that focuses on RDF, not OWL. What looks to be the only current and active open source package: FuXi 1.0: A Python-based, bi-directional logical reasoning system for the semantic web This is a Java package but it has a Python console (via Jython): Protégé Script Console A commercial package that has python support: Python Sesame API Tutorial for AllegroGraph 4.2 Some packages that are admittedly incomplete: OWL SugarView Some older packages that appear inactive: OWL Logic Closed

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.

How to enable Pellet in Protege 4.3.0?

拥有回忆 提交于 2019-12-02 09:49:32
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? 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

It is possible to use aggregate function when inserting data in SPARQL?

旧时模样 提交于 2019-12-02 09:43:55
问题 I have the following query which aims to prevent the insertion in a named graph when the amount of triples is of a given number, e.g., 5. I tried to reproduce the example showed here where the insertion of data is possible but I need to use the same named graph and, most important an aggregate function, i.e., COUNT. INSERT { GRAPH <http://example/g1> { ?s ?p ?o } } WHERE { GRAPH <http://example/g1> { ?s ?p ?o . FILTER ( COUNT(?p) < 5) } } Jena Fuseki raises the following error: Aggregate

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,

SWRL and Rolification cannot return what I want

好久不见. 提交于 2019-12-02 09:26:56
问题 I have developed an ontology and I want to add the following SWRL in protege: Divider_intersection(?node), is_extent_of(?node, ?s), builds(?s, ?l),Segment(?s),Lane(?l),detailed_partition(?d), builds(?l, ?d)-> is_divided_at(?d, ?node) with this I wish to add an object property, is_divided_at, between an individual from detailed_partition (?d) and a node that is classified as a divider_intersection if it is the extent of a segment (?s) that build a lane (?l) which then build the detailed