weso / hercules-sync

Tools to synchronise data between the ontology files and Wikibase instance for the Hercules project at University of Murcia.
GNU General Public License v3.0
4 stars 1 forks source link

Base implementation of ontology reasoner #14

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

We need to implement a basic reasoner that determines whether an URI is an rdf:Property or a rdfs:Class. This information is used later on when we use the wikibase adapter to know if we are inserting an item (Q) or a property (P). We know that a URI represents a property at least in the following cases:

More cases and support for OWL will be discussed in additional issues.

alejgh commented 4 years ago

We need to see if we can use the process module from the rdfs package in rdflib to solve this issue: https://rdflib.readthedocs.io/en/stable/_modules/rdflib/plugins/parsers/pyRdfa/rdfs/process.html#MiniOWL

alejgh commented 4 years ago

Bumping the priority of this issue, since it is blocking advancements in #15