Hi @fab_hop,
thanks for your work on rebooting the German chapter. I would like to consolidate this work for all chapters. Could you answer some things?
-
I am not really sure, what version of the DBpediaVAD Docker you used. I think there is one from Joern and one from Magnus. Did you pick it up from docu? Or did Magnus make something? Could you post links or the docker here?
-
I wrote a query, which should get the latest German Data:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dataid: <http://dataid.dbpedia.org/ns/core#>
PREFIX dataid-cv: <http://dataid.dbpedia.org/ns/cv#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
SELECT ?artifact, ?latestVersion, ?label, ?comment, ?file WHERE {
{
# Subselect latestVersion by artifact
SELECT ?artifact (max(?version) as ?latestVersion) WHERE {
?dataset dataid:artifact ?artifact .
?dataset dct:hasVersion ?version
FILTER (?artifact in (
################
# GENERIC
################
<https://databus.dbpedia.org/dbpedia/generic/article-templates> ,
<https://databus.dbpedia.org/dbpedia/generic/categories> ,
<https://databus.dbpedia.org/dbpedia/generic/citations> ,
<https://databus.dbpedia.org/dbpedia/generic/commons-sameas-links> ,
<https://databus.dbpedia.org/dbpedia/generic/disambiguations> ,
<https://databus.dbpedia.org/dbpedia/generic/external-links> ,
<https://databus.dbpedia.org/dbpedia/generic/geo-coordinates> ,
<https://databus.dbpedia.org/dbpedia/generic/homepages> ,
<https://databus.dbpedia.org/dbpedia/generic/infobox-properties> ,
<https://databus.dbpedia.org/dbpedia/generic/infobox-property-definitions> ,
# not sure if needed
# <https://databus.dbpedia.org/dbpedia/generic/interlanguage-links> ,
<https://databus.dbpedia.org/dbpedia/generic/labels> ,
# not sure if needed
# <https://databus.dbpedia.org/dbpedia/generic/page> ,
<https://databus.dbpedia.org/dbpedia/generic/persondata> ,
<https://databus.dbpedia.org/dbpedia/generic/redirects> ,
# not sure if needed
# <https://databus.dbpedia.org/dbpedia/generic/revisions> ,
<https://databus.dbpedia.org/dbpedia/generic/topical-concepts> ,
# very large, useful for statistical raph analysis
# <https://databus.dbpedia.org/dbpedia/generic/wikilinks> ,
<https://databus.dbpedia.org/dbpedia/generic/wikipedia-links> ,
################
# MAPPINGS
################
<https://databus.dbpedia.org/dbpedia/mappings/instance-types>,
<https://databus.dbpedia.org/dbpedia/mappings/mappingbased-objects>,
<https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals>,
<https://databus.dbpedia.org/dbpedia/mappings/geo-coordinates-mappingbased>,
################
# TEXT (still old)
################
<https://databus.dbpedia.org/dbpedia/text/short-abstracts>,
<https://databus.dbpedia.org/dbpedia/text/long-abstracts>,
###############
# latest ontology, currently @denis account
##############
<https://databus.dbpedia.org/denis/ontology/dbo-snapshots>
)) .
}GROUP BY ?artifact
}
?dataset dct:hasVersion ?latestVersion .
?dataset rdfs:label ?label .
?dataset rdfs:comment ?comment .
{
?dataset dataid:artifact ?artifact .
?dataset dcat:distribution ?distribution .
?distribution dcat:downloadURL ?file .
?distribution dataid:contentVariant "de"^^xsd:string .
# remove debug info
MINUS {
?distribution dataid:contentVariant ?variants .
FILTER (?variants in ("disjointDomain"^^xsd:string, "disjointRange"^^xsd:string))
}
# Just the transitives of these two
MINUS {
?dataset dataid:artifact ?a . FILTER (?a IN (
<https://databus.dbpedia.org/dbpedia/mappings/instance-types>,
<https://databus.dbpedia.org/dbpedia/generic/redirects>)) .
?dataset dcat:distribution ?distribution .
FILTER NOT EXISTS {?distribution dataid:contentVariant "transitive"^^xsd:string}
}
# NTriples version of the ontology
} UNION {
?dataset dataid:artifact <https://databus.dbpedia.org/denis/ontology/dbo-snapshots> .
?dataset dcat:distribution ?distribution .
?distribution dcat:mediaType <http://dataid.dbpedia.org/ns/mt#ApplicationNTriples> .
?distribution dcat:downloadURL ?file .
}
} ORDER by ?artifact
If you execute it in yasgui (click here) it returns 23 files, but I think you loaded more.
Could you check or do you have a list?
The main process here is this:
- nobody really knows where all the up-to-date info about how to set up and maintain a chapter is, so we need to collect all information and put it in one place.
- If we have a docker, we can put it on https://hub.docker.com/u/dbpedia
- with the query above chapters can just change “de” to “their language” and then use the docker. DA will work on getting all the missing files running monthly.