Skip to content

Commit

Permalink
Feat: add a metadata template
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianvasquez committed Mar 27, 2023
1 parent cf32097 commit d2faace
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
42 changes: 42 additions & 0 deletions metadata/dataset.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@prefix void: <http://rdfs.org/ns/void#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix dcat: <http://www.w3.org/ns/dcat#>.
@prefix schema: <http://schema.org/>.
@prefix org: <https://ld.admin.ch/org/>.
@prefix rico: <https://www.ica.org/standards/RiC/ontology#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix alod: <https://schema.ld.admin.ch/>.

##
## Datasets
##

<https://example.org/.well-known/void> a void:Dataset, dcat:Dataset, schema:Dataset ;
schema:name
"REPLACEME"@en ,
"REPLACEME"@de ,
"REPLACEME"@fr ,
"REPLACEME"@it ;
schema:description
"REPLACEME"@en ,
"REPLACEME"@de ,
"REPLACEME"@fr ,
"REPLACEME"@it ;
schema:contactPoint [
a schema:ContactPoint ;
schema:name "REPLACEME" ;
schema:email "REPLACEME" ];
schema:contributor <https://register.ld.admin.ch/zefix/company/1198554> ;
schema:publisher <https://publisher.org/organization/example> ;
schema:dateCreated "2022-11-30"^^xsd:date;
schema:datePublished "2022-11-30"^^xsd:date;
void:exampleResource <https://publisher.org/instance/example> ;
void:sparqlEndpoint <https://publisher.org/query/> ;
dcat:landingPage <https://publisher.org/webpage> ;
dcat:accessURL <https://publisher.org/sparql/> ;
.

17 changes: 17 additions & 0 deletions pipelines/main.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
p:stepList (
<readFile>
<carmlService>
<attachMetadata>
<serialize>
<writeFile>
)
Expand All @@ -57,6 +58,7 @@
p:stepList (
<readFile>
<carmlService>
<attachMetadata>
<setDestinationGraph>
<graphStorePut>
)
Expand All @@ -69,6 +71,7 @@
p:stepList (
<readFile>
<parseN3>
<attachMetadata>
<setDestinationGraph>
<graphStorePut>
)
Expand Down Expand Up @@ -158,3 +161,17 @@
code:name "maxQuadsPerRequest";
code:value 10000000
].

#
# Dataset metadata
#

<attachMetadata> a p:Step ;
code:implementedBy [ a code:EcmaScriptModule ;
code:link <node:barnard59-rdf/metadata.js#append> ] ;
code:arguments [
code:name "input"; code:value "../metadata/dataset.ttl"
], [
code:name "dateModified";
code:value "TIME_NOW";
].

0 comments on commit d2faace

Please sign in to comment.