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

Better handling of labels and descriptions in wikibase #19

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

Right now we are settings labels and descriptions in wikibase when rdfs:label or rdfs:description URIs are found in the triple respectively.

From the Wikibase RDF Dump Format page we can see this:

Entity labels - the main name of the entity. Labels are defined as schema:name, rdfs:label and skos:prefLabel predicates with objects being language-tagged string literals.
Entity aliases - the secondary names of the entity. Aliases are defined as skos:altLabel predicates with objects being language-tagged string literals.
Entity description - the longer description of the entity. Defined as schema:description predicates with objects being language-tagged string literals.

So we should considering setting labels also when a schema:name or skos:prefLabel is found, and setting a description with the schema:description URI.