Closed KonradHoeffner closed 5 years ago
select ?g count(*) from <http://www.snik.eu/ontology>
{
graph ?g {?x skos:closeMatch ?y.}
filter(strstarts(str(?x),"http://www.snik.eu/ontology/it/")||strstarts(str(?y),"http://www.snik.eu/ontology/it/"))
}
g | count |
---|---|
http://www.snik.eu/ontology/limes-exact | 134 |
http://www.snik.eu/ontology/it | 42 |
Fix via:
delete
{
graph <http://www.snik.eu/ontology/limes-exact> {?x skos:closeMatch ?y.}
}
insert
{
graph <http://www.snik.eu/ontology/it> {?x skos:closeMatch ?y.}
}
where
{
graph <http://www.snik.eu/ontology/limes-exact> {?x skos:closeMatch ?y.}
filter(strstarts(str(?x),"http://www.snik.eu/ontology/it/")||strstarts(str(?y),"http://www.snik.eu/ontology/it/"))
}
Delete 134 (or less) quads -- done Insert into http://www.snik.eu/ontology/it, 134 (or less) quads -- done
New situation:
select ?g count(*) from <http://www.snik.eu/ontology>
{
graph ?g {?x skos:closeMatch ?y.}
filter(strstarts(str(?x),"http://www.snik.eu/ontology/it/")||strstarts(str(?y),"http://www.snik.eu/ontology/it/"))
}
g | count |
---|---|
http://www.snik.eu/ontology/it | 136 |
Es ist nur deutlich weniger als die Summe, anscheinend gab es da einige Überschneidungen. Zum sicherstellen, nochmal den Dump ranholen und die Schnittmenge prüfen:
$ rapper -i turtle 20190227-2it000001.ttl > it.nt
$ grep "closeMatch" it.nt | sort > itlinks.nt
$ rapper -i turtle 20190227-2limes-exact000001.ttl > limeslinks.nt
$ grep "http://www.snik.eu/ontology/it/" limeslinks.nt | sort > limesit.nt
$ comm -12 itlinks.nt limesit.nt
40
134+42-40=136, es hat also alles geklappt.
Alle Interlinks die ITIL als Ziel haben sollen in den nichtöffentlichen ITIL-Graphen verschoben werden.