-
Notifications
You must be signed in to change notification settings - Fork 13
Align with Wikidata #17
Copy link
Copy link
Open
Labels
enhancementfeature requests, enhancementsfeature requests, enhancements
Milestone
Description
I've started to align CBO with Wikidata properties and items. Mappings can directly be stored in Wikidata and queried like this at https://query.wikidata.org/:
# Ontology mapping between Comic Book Ontology and Wikidata
SELECT ?uri ?relation ?pLabel ?p WHERE {
{ ?p wdt:P2236 ?uri . BIND ("⊂" AS ?relation) } UNION # sub-property
{ ?p wdt:P2235 ?uri . BIND ("⊃" AS ?relation) } UNION # super-property
{ ?p wdt:P1628 ?uri . BIND ("=" AS ?relation) } UNION # equivalent property
{ ?p wdt:P1709 ?uri . BIND ("=" AS ?relation) } UNION # equivalent class
{ ?p wdt:P2888 ?uri . BIND ("=" AS ?relation) } # exact match
FILTER(STRSTARTS(STR(?uri), "http://comicmeta.org/"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
It is some manual work to complete a mapping and some properties/classes have no counterpart but once the mapping exists, we can extract Comic Book Data from Wikidata in CBO format. By now there are around 25.000 comics and comic series in Wikidata.
Help in extending the mapping is welcome! I can then code the wrapper to extract CBO data from Wikidata.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementfeature requests, enhancementsfeature requests, enhancements
Type
Projects
Status
In Progress