LexMeta OWL: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
LexBib wikibase entities with a [[Property:P42|P42 "LexMeta OWL equivalent"]] statement are considered for the export. Their rdf:type is declared using the value of that statement's [[Property:P166|P166 "rdf:type (OWL)]] qualifier. If for that statement a [[Property:P167|P167 "skos:exactMatch"]] qualifier is found, that is also exported (that tipically points to the FRBR, MetaShare, or BIBO equivalent of the entity, see [[LexMeta]]). For classes, "subclass of" ([[Property:P4|P4]]), and for properties, "subproperty of" ([[Property:P169|P169]]) are also considered. Property "domain" ([[Property:P168|P168]]) and "range" ([[Property:P48|P48]]) are declared as separate statements, while "range" (in cases where the OWL range expression is complex) can be expressed using a [[Property:P170|P170]] "OWL range expression" qualifier (this is done where the range is a concept scheme, see e.g. [[Property:P127|P127]]).
LexBib wikibase entities with a [[Property:P42|P42 "LexMeta OWL equivalent"]] statement are considered for the export. Their rdf:type is declared using the value of that statement's [[Property:P166|P166 "rdf:type (OWL)]] qualifier. If for that statement a [[Property:P167|P167 "skos:exactMatch"]] qualifier is found, that is also exported (that tipically points to the FRBR, MetaShare, or BIBO equivalent of the entity, see [[LexMeta]]). For classes, "subclass of" ([[Property:P4|P4]]), and for properties, "subproperty of" ([[Property:P169|P169]]) are also considered. Property "domain" ([[Property:P168|P168]]) and "range" ([[Property:P48|P48]]) are declared as separate statements, while "range" (in cases where the OWL range expression is complex) can be expressed using a [[Property:P170|P170]] "OWL range expression" qualifier (this is done where the range is a concept scheme, see e.g. [[Property:P127|P127]]).


Other statements for these entities are exported in case the LexBib wikibase property is also aligned (using [[Property:P42|P42]]) to a LexMeta OWL equivalent. Statements pointing to other LexBib wikibase items are exported if the object is also aligned to LexMeta OWL. [[Property:P2|P2 "Wikidata Entity"]] statements and the LexBib wikibase entity URI itself are mapped to an object property called "lexmeta:wikibaseEntity".
Other statements for these entities are exported in case the LexBib wikibase property is also aligned (using [[Property:P42|P42]]) to a LexMeta OWL equivalent. Statements pointing to other LexBib wikibase items are exported only if the object is also aligned to LexMeta OWL. Other properties are mapped to datatype properties. [[Property:P2|P2 "Wikidata Entity"]] statements and the LexBib wikibase entity URI itself are mapped to an object property called "lexmeta:wikibaseEntity".


This method is implemented in a script found [https://github.com/dlindem/wikibase/blob/main/lexbib/build-owl.py here].
This method is implemented in a script found [https://github.com/dlindem/wikibase/blob/main/lexbib/build-owl.py here].


The resulting TTL file is found [https://github.com/pennyl67/LexMeta/blob/main/lexmeta.ttl here], from where a HTML documentation is generated using [https://ontoology.linkeddata.es/ Ontoology].
The resulting TTL file is found [https://github.com/pennyl67/LexMeta/blob/main/lexmeta.ttl here], from where a HTML documentation is generated using [https://ontoology.linkeddata.es/ Ontoology].