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

Add basic ontology reasoning #33

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

We are now now parsing the classes and properties of the ontology, and annotating the type of each URIElement. So now following this example:

ex:authors rdf:type owl:ObjectProperty ;
           rdfs:subPropertyOf ex:authoredBy .

It will be inferred that ex:authors is a property, and it will be created in Wikibase likewise.

Finally, we can also infer now the datatype of a property, which will considerably ease the implementation of issue #15

This closes #14

codecov[bot] commented 4 years ago

Codecov Report

Merging #33 into master will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   95.47%   95.65%   +0.19%     
==========================================
  Files          14       14              
  Lines         507      528      +21     
==========================================
+ Hits          484      505      +21     
  Misses         23       23              
Impacted Files Coverage Δ
...ules_sync/synchronization/ontology_synchronizer.py 100.00% <100.00%> (ø)
hercules_sync/triplestore/triple_info.py 97.03% <100.00%> (+0.19%) :arrow_up:
hercules_sync/triplestore/wikibase_adapter.py 98.39% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b3dba42...329c79f. Read the comment docs.