Skip to content

dbpedia/dnkg-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnkg-pilot

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.

License

CC-BY - contributions to this repo will be licensed to give attribution to the DBpedia Knowledge Library.

Details

We keep the detailed instructions in this Google Doc

Mappings Viewer

Technical Section

To contribute to this repository please create a pull request and follow the instructs in the details section.

Folder structure

cartridges/user/source/partition

where

  • user is the person or organisation producing the data
  • source is a short name for the general source of the dataset within that organisation
  • partition is a name for the partition generated by export.construct. Often a class or category, but arbitrary partitions can be selected in the where clause.

Files

  • 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 examples
  • links.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

Void Stats

Mod SPARQL Endpoint

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

Mod File Server

Path structure:

$modName/$publisherName/$group/$artifact/$version/$file/$modFiles

About

Dutch National Knowledge Graph Pilot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published