diff --git a/csv2json.js b/csv2json.js index a8f04a0..f6a2165 100644 --- a/csv2json.js +++ b/csv2json.js @@ -8,10 +8,10 @@ process.stdin for (let key in data) { if (data[key] === "") delete data[key] } - if ("id" in data) { - data.id = "http://data.nfdi4objects.net/collection/" + data.id - data.type = ["fabio:Database","dcat:Dataset"] - } else if ("wikidata" in data) { + if ("id" in data) { // collections = named graphs + data.id = "https://graph.nfdi4objects.net/collection/" + data.id + data.type = ["fabio:Database","dcat:Dataset"] + } else if ("wikidata" in data) { // databases data.id = "http://www.wikidata.org/entity/" + data.id // TODO: type } diff --git a/n4o-collections.json b/n4o-collections.json index 9765563..2fbf740 100644 --- a/n4o-collections.json +++ b/n4o-collections.json @@ -1,107 +1,119 @@ [ { - "id": "http://data.nfdi4objects.net/collection/1", + "id": "https://graph.nfdi4objects.net/collection/1", "name": "Ur- und Frühgeschichtliche Sammlung der FAU", "url": "https://objekte-im-netz.fau.de/projekt/node/22", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/2", + "id": "https://graph.nfdi4objects.net/collection/2", "name": "Paläontologischen Sammlung der FAU|Geowissenschaftliche Sammlung der FAU", "url": "https://objekte-im-netz.fau.de/projekt/node/20", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/3", + "id": "https://graph.nfdi4objects.net/collection/3", "name": "Graphische Sammlung der FAU", "url": "https://objekte-im-netz.fau.de/projekt/node/17", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/4", + "id": "https://graph.nfdi4objects.net/collection/4", "name": "Musikinstrumentensammlung der FAU", "url": "https://objekte-im-netz.fau.de/projekt/node/19", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/5", + "id": "https://graph.nfdi4objects.net/collection/5", "name": "Medizinische Sammlung der FAU", "url": "https://objekte-im-netz.fau.de/projekt/node/18", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/6", + "id": "https://graph.nfdi4objects.net/collection/6", "name": "Schulgeschichtliche Sammlung der FAU und Schulmuseum", "url": "https://objekte-im-netz.fau.de/projekt/node/21", "db": "Q124695065", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/7", + "id": "https://graph.nfdi4objects.net/collection/7", "name": "KENOM Virtuelles Münzportal", "url": "http://www.kenom.de/", "db": "Q21040628", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/8", + "id": "https://graph.nfdi4objects.net/collection/8", "name": "Samian Research Database", "url": "https://rgzm.github.io/samian-lod/", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/9", + "id": "https://graph.nfdi4objects.net/collection/9", "name": "Linked Open Ogham", "url": "https://doi.org/10.5281/zenodo.4765603", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/10", + "id": "https://graph.nfdi4objects.net/collection/10", "name": "African Red Slip Ware", "url": "https://doi.org/10.5281/zenodo.5642751", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/11", + "id": "https://graph.nfdi4objects.net/collection/11", "name": "Digitale Sammlungen der Museen der Klassikstiftung Weimar", "url": "https://ores.klassik-stiftung.de/ords/ksw_internet/r/300/home", "db": "Q124536091", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] }, { - "id": "http://data.nfdi4objects.net/collection/12", + "id": "https://graph.nfdi4objects.net/collection/12", "name": "Graphische Sammlung des Germanisches National Museum", "url": "https://www.gnm.de/sammlungen/sammlungen-a-z/graphische-sammlung", "db": "Q478695", "type": [ - "fabio:Database" + "fabio:Database", + "dcat:Dataset" ] } ] diff --git a/n4o-sources.nt b/n4o-sources.nt index 81b7203..e412c6a 100644 --- a/n4o-sources.nt +++ b/n4o-sources.nt @@ -1,48 +1,60 @@ - "African Red Slip Ware" . - . - . - "Digitale Sammlungen der Museen der Klassikstiftung Weimar" . - . - . - "Graphische Sammlung des Germanisches National Museum" . - . - . - "Ur- und Frühgeschichtliche Sammlung der FAU" . - . - . - "Paläontologischen Sammlung der FAU|Geowissenschaftliche Sammlung der FAU" . - . - . - "Graphische Sammlung der FAU" . - . - . - "Musikinstrumentensammlung der FAU" . - . - . - "Medizinische Sammlung der FAU" . - . - . - "Schulgeschichtliche Sammlung der FAU und Schulmuseum" . - . - . - "KENOM Virtuelles Münzportal" . - . - . - "Samian Research Database" . - . - . - "Linked Open Ogham" . - . - . - . - . - . - . - . - . - . - . - . + . + . + . + . + . + . + . + . + . + "African Red Slip Ware" . + . + . + . + "Digitale Sammlungen der Museen der Klassikstiftung Weimar" . + . + . + . + "Graphische Sammlung des Germanisches National Museum" . + . + . + . + "Ur- und Frühgeschichtliche Sammlung der FAU" . + . + . + . + "Paläontologischen Sammlung der FAU|Geowissenschaftliche Sammlung der FAU" . + . + . + . + "Graphische Sammlung der FAU" . + . + . + . + "Musikinstrumentensammlung der FAU" . + . + . + . + "Medizinische Sammlung der FAU" . + . + . + . + "Schulgeschichtliche Sammlung der FAU und Schulmuseum" . + . + . + . + "KENOM Virtuelles Münzportal" . + . + . + . + "Samian Research Database" . + . + . + . + "Linked Open Ogham" . + . + . + . "montan.dok" . . diff --git a/n4o-sources.ttl b/n4o-sources.ttl index 5bad735..ae8f11f 100644 --- a/n4o-sources.ttl +++ b/n4o-sources.ttl @@ -5,76 +5,76 @@ @prefix owl: . @prefix schema: . @prefix wd: . -@prefix n4oc: . +@prefix n4oc: . -n4oc:10 a fabio:Database ; - schema:name "African Red Slip Ware" ; - foaf:homepage . +wd:Q124536091 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; + dcat:dataset n4oc:11 ; + schema:name "Digitale Sammlungen der Museen der Klassikstiftung Weimar" ; + foaf:homepage . -n4oc:11 a fabio:Database ; +n4oc:11 a fabio:Database, dcat:Dataset ; schema:name "Digitale Sammlungen der Museen der Klassikstiftung Weimar" ; foaf:homepage . -n4oc:12 a fabio:Database ; - schema:name "Graphische Sammlung des Germanisches National Museum" ; - foaf:homepage . +wd:Q124695065 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; + dcat:dataset n4oc:1, n4oc:2, n4oc:3, n4oc:4, n4oc:5, n4oc:6 ; + schema:name "Objekte im Netz" ; + foaf:homepage . -n4oc:1 a fabio:Database ; +n4oc:1 a fabio:Database, dcat:Dataset ; schema:name "Ur- und Frühgeschichtliche Sammlung der FAU" ; foaf:homepage . -n4oc:2 a fabio:Database ; +n4oc:2 a fabio:Database, dcat:Dataset ; schema:name "Paläontologischen Sammlung der FAU|Geowissenschaftliche Sammlung der FAU" ; foaf:homepage . -n4oc:3 a fabio:Database ; +n4oc:3 a fabio:Database, dcat:Dataset ; schema:name "Graphische Sammlung der FAU" ; foaf:homepage . -n4oc:4 a fabio:Database ; +n4oc:4 a fabio:Database, dcat:Dataset ; schema:name "Musikinstrumentensammlung der FAU" ; foaf:homepage . -n4oc:5 a fabio:Database ; +n4oc:5 a fabio:Database, dcat:Dataset ; schema:name "Medizinische Sammlung der FAU" ; foaf:homepage . -n4oc:6 a fabio:Database ; +n4oc:6 a fabio:Database, dcat:Dataset ; schema:name "Schulgeschichtliche Sammlung der FAU und Schulmuseum" ; foaf:homepage . -n4oc:7 a fabio:Database ; - schema:name "KENOM Virtuelles Münzportal" ; - foaf:homepage . - -n4oc:8 a fabio:Database ; - schema:name "Samian Research Database" ; - foaf:homepage . - -n4oc:9 a fabio:Database ; - schema:name "Linked Open Ogham" ; - foaf:homepage . - -wd:Q124536091 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; - schema:name "Digitale Sammlungen der Museen der Klassikstiftung Weimar" ; - foaf:homepage ; - dcat:dataset n4oc:11 . - -wd:Q124695065 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; - schema:name "Objekte im Netz" ; - foaf:homepage ; - dcat:dataset n4oc:1, n4oc:2, n4oc:3, n4oc:4, n4oc:5, n4oc:6 . - wd:Q21040628 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; + dcat:dataset n4oc:7 ; schema:name "KENOM" ; foaf:homepage ; - dcat:dataset n4oc:7 ; dcat:distribution [ dcat:accessURL "https://www.kenom.de/oai/"^^ ] . +n4oc:7 a fabio:Database, dcat:Dataset ; + schema:name "KENOM Virtuelles Münzportal" ; + foaf:homepage . + wd:Q478695 dcat:dataset n4oc:12 . +n4oc:12 a fabio:Database, dcat:Dataset ; + schema:name "Graphische Sammlung des Germanisches National Museum" ; + foaf:homepage . + +n4oc:10 a fabio:Database, dcat:Dataset ; + schema:name "African Red Slip Ware" ; + foaf:homepage . + +n4oc:8 a fabio:Database, dcat:Dataset ; + schema:name "Samian Research Database" ; + foaf:homepage . + +n4oc:9 a fabio:Database, dcat:Dataset ; + schema:name "Linked Open Ogham" ; + foaf:homepage . + wd:Q124504881 a fabio:Database, dcat:Catalog, nfdicore:DataPortal ; schema:name "montan.dok" ; foaf:homepage . diff --git a/prefixes.json b/prefixes.json index 67890e8..20ece6e 100644 --- a/prefixes.json +++ b/prefixes.json @@ -9,5 +9,5 @@ "skos": "http://www.w3.org/2004/02/skos/core#", "xsd": "http://www.w3.org/2001/XMLSchema#", "wd": "http://www.wikidata.org/entity/", - "n4oc": "http://data.nfdi4objects.net/collection/" + "n4oc": "https://graph.nfdi4objects.net/collection/" }