Skip to content

Align with Wikidata #17

@nichtich

Description

@nichtich

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.

Metadata

Metadata

Assignees

Labels

enhancementfeature requests, enhancements

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions