Open ingoboerner opened 4 years ago
Useful properties: https://www.wikidata.org/wiki/Property:P1441
PREFIX frbroo: <http://iflastandards.info/ns/fr/frbr/frbroo/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?wd ?label FROM <https://dracor.org/rom> WHERE
{?character a frbroo:F38_Character ;
rdfs:label ?label ;
owl:sameAs ?wd
FILTER(LANG(?label) = 'latin')
}
ORDER BY ?label
returns 51 unique Links to Wikidata-Entites
OK, the query should look for DISTINCT ?wd only, because the labels (of course) vary..
@nevmenandr found out, that wikidata is inconsistend, when it comes to mythological characters. Please provide examples!
In fact, this is not about the inconsistency of the Wikidata, but about the inconvenience of their URI for the purposes of our cross-corpora markup. There are three types of such cases.
Count overlaps of characters
PREFIX frbroo: <http://iflastandards.info/ns/fr/frbr/frbroo/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?wd (COUNT(?drama) AS ?CNT) WHERE
{
GRAPH ?g {
?character a frbroo:F38_Character ;
owl:sameAs ?wd .
?drama schema:character ?character .
}
}
GROUP BY ?wd
ORDER BY DESC(?CNT)
alternative:
PREFIX frbroo: <http://iflastandards.info/ns/fr/frbr/frbroo/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX urn: <http://fliqz.com/>
SELECT ?wd (COUNT(?drama) AS ?cnt) FROM <urn:x-arq:UnionGraph> WHERE
{
?character a frbroo:F38_Character ;
owl:sameAs ?wd .
?drama schema:character ?character .
}
GROUP BY ?wd
ORDER BY DESC(?cnt)
@nevmenandr found out, that wikidata is inconsistend, when it comes to mythological characters. Please provide examples!