select ?source ?en ?nl ?c {
{select ?source (count(*) as ?c) {
?term <http://purl.org/dc/terms/source> ?source .
} group by ?source order by desc(?c) limit 100}
?source gvp:prefLabelGVP [xl:literalForm ?en].
optional {?source xl:prefLabel [xl:literalForm ?nl; dct:language gvp_lang:nl]}}
I've also tried simply getting all term_id/source_id pairs, planning to put them in a database and do grouping & counting there, but although 2.6m pairs are returned as the count in the browser, a CSV download only gets 624,262 of them. Another mystery.
Any help, suggestions appreciated!
Karl,
If you're using the default endpoint [1], it might help to include a test for TGN-only concepts in your query:
?term skos:inScheme <http://vocab.getty.edu/tgn/> .
When I add that criterion, I don't find any sources with the gvp:prefLabelGVP property, though there are clearly plenty in the AAT. What search did you use to get your 3900 sources?
Best wishes,
Richard
--
You received this message because you are subscribed to the Google Groups "Getty Vocabularies as Linked Open Data" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gettyvocablo...@googlegroups.com.
To post to this group, send email to gettyv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gettyvocablod/37e6030a-f1bc-42fc-a6be-7564c42db5f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard,
Thanks. I originally got the tgn sources from a
dump file, but I can also get them from this (the sources don't have inScheme property)
select ?id ?short_title ?title ?license {
?x void:inDataset <http://vocab.getty.edu/dataset/tgn> ;
rdf:type bibo:Document ;
dc:identifier ?id ;
dcterms:title ?title ;
bibo:shortTitle ?short_title ;
dcterms:license ?license .
}
I also have the dump file TGNOut_SourceRels.nt, so I’m going to extract <term, source, sourceid> triples from that, put in a database and do my counts there – the filtered set would wind up in the database anyway.
thanks
Karl
The simplest count query gives error "This site can’t be reached. The connection was reset."select (count(*) as ?c) {
?concept skos:inScheme aat:
}
In contrast, this query works ok:
select * {
?concept skos:inScheme aat:
} limit 100