Dutch National Knowledge Graph (DNKG) Pilot
A repo to capture the necessary information to build the DNKG via DBpedia cartridges. We use Github prototyping to capture information in files and version them. Once we feel confident that information is complete and things run smooth, we will implement a user interface and better tools. The structure is very similar to the Databus folder structure.
CC-BY - contributions to this repo will be licensed to give attribution to the DBpedia Knowledge Library.
We keep the detailed instructions in this Google Doc
To contribute to this repository please create a pull request and follow the instructs in the details section.
cartridges/user/source/partition
where
user
is the person or organisation producing the datasource
is a short name for the general source of the dataset within that organisationpartition
is a name for the partition generated byexport.construct
. Often a class or category, but arbitrary partitions can be selected in the where clause.
metadata.ttl
specifies where to acquire the data in a single triple. Note that later the Databus will keep much better metadata and provenance.@prefix dev: <http://example.com/dev#>. <> dev:databusversion <https://databus.dbpedia.org/jj-author/kadaster/bag/2020.07.29> .
export.construct
executed over the data to create a partition to be indexed: see 2.4.4. Specify ID space or look at the exampleslinks.construct
executed over the data to construct the links$dbo-property.pt-construct
0...n files that export the complex structure described in the where clause, to a flat, coarse-grained DBpedia-like structure in the CONSTRUCT clause
Example query to get all property partitions for the kadaster cartridge-input
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX dataid: <http://dataid.dbpedia.org/ns/core#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT DISTINCT ?property (SUM(?count) AS ?counts) {
SERVICE <https://databus.dbpedia.org/repo/sparql> {
?s dct:publisher <https://dbpedia.github.io/accounts/shared-webids/dnkg.ttl#this> .
?s dataid:artifact <https://databus.dbpedia.org/dnkg/cartridge-input/kadaster> .
?s dcat:distribution/dataid:file ?used .
}
?mod prov:generated ?generated .
?mod prov:used ?used .
?generated void:propertyPartition [
void:triples ?count ;
void:property ?property
] .
} GROUP BY ?property
Path structure:
$modName/$publisherName/$group/$artifact/$version/$file/$modFiles