From ca9e3d7859ccb930ff44eb8a0a010ad606ff3fc9 Mon Sep 17 00:00:00 2001 From: stephanef Date: Thu, 8 Feb 2024 00:23:08 -0500 Subject: [PATCH] Fixed examples for catalogs --- docs/examples/catalog/catalog.jsonld | 86 ++++++++++++--------- docs/examples/catalog/catalog.ttl | 57 ++++++++++---- docs/examples/catalog/conforms-to.jsonld | 9 ++- docs/examples/catalog/conforms-to.ttl | 7 ++ docs/examples/catalog/dataset.jsonld | 19 +++-- docs/examples/catalog/dataset.ttl | 25 +++--- docs/examples/catalog/description.jsonld | 14 +++- docs/examples/catalog/description.ttl | 11 ++- docs/examples/catalog/homepage.jsonld | 23 +++--- docs/examples/catalog/homepage.ttl | 10 ++- docs/examples/catalog/issued.jsonld | 15 +++- docs/examples/catalog/issued.ttl | 9 ++- docs/examples/catalog/language.jsonld | 7 ++ docs/examples/catalog/language.ttl | 7 +- docs/examples/catalog/license.jsonld | 23 +++--- docs/examples/catalog/license.ttl | 6 +- docs/examples/catalog/modified.jsonld | 9 ++- docs/examples/catalog/modified.ttl | 6 ++ docs/examples/catalog/publisher.jsonld | 28 +++---- docs/examples/catalog/publisher.ttl | 9 ++- docs/examples/catalog/rights.jsonld | 31 ++++---- docs/examples/catalog/rights.ttl | 9 ++- docs/examples/catalog/service.jsonld | 47 +++++------ docs/examples/catalog/service.ttl | 46 ++++++----- docs/examples/catalog/spatial.ttl | 9 ++- docs/examples/catalog/theme-taxonomy.jsonld | 13 +++- docs/examples/catalog/theme-taxonomy.ttl | 10 ++- docs/examples/catalog/title.jsonld | 9 ++- docs/examples/catalog/title.ttl | 10 ++- 29 files changed, 369 insertions(+), 195 deletions(-) diff --git a/docs/examples/catalog/catalog.jsonld b/docs/examples/catalog/catalog.jsonld index deeac85..e72e50d 100644 --- a/docs/examples/catalog/catalog.jsonld +++ b/docs/examples/catalog/catalog.jsonld @@ -1,57 +1,69 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@graph": [ - { - "@id": "https://data.census.gov/data/345", - "@type": "dcat:Dataset" - }, - { - "@id": "https://census.gov", - "@type": "foaf:Organization" - }, - { - "@id": "https://data.census.gov/index.html", - "@type": "foaf:Document" - }, - { - "@id": "https://data.census.gov/data/123", - "@type": "dcat:Dataset" - }, { "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", "description": "US Census Data Catalog", - "issued": { - "@type": "http://www.w3.org/2001/XMLSchema#date", - "@value": "2020-05-25" - }, - "language": [ - "en" - ], - "license": "https://creativecommons.org/publicdomain/zero/1.0/", - "modified": { - "@type": "http://www.w3.org/2001/XMLSchema#date", - "@value": "2020-05-25" - }, "publisher": "https://census.gov", - "title": "US Census Open Data Catalog", "dataset": [ "https://data.census.gov/data/123", "https://data.census.gov/data/345" ], "service": [ - "https://data.census.gov/service/123", - "https://data.census.gov/service/345" + "https://data.census.gov/service/service1", + "https://data.census.gov/service2" ], - "homepage": "https://census.gov/catalog.html" + "homepage": "https://census.gov/catalog.html", + "issued": "2020-05-25", + "license": "https://creativecommons.org/publicdomain/zero/1.0/", + "modified": "2020-05-25", + "language": "http://id.loc.gov/vocabulary/iso639-1/en" }, { - "@id": "https://data.census.gov/service/345", - "@type": "dcat:DataService" + "@id": "https://data.census.gov/data/123", + "@type": "dcat:Dataset", + "title": "Dataset 123", + "description": "This dataset contains information about...", + "publisher": "https://census.gov" + }, + { + "@id": "https://data.census.gov/data/345", + "@type": "dcat:Dataset", + "title": "Dataset 345", + "description": "This dataset contains information about...", + "publisher": "https://census.gov" + }, + { + "@id": "https://data.census.gov/service/service1", + "@type": "dcat:DataService", + "title": "Data Service 1", + "description": "This is a service that provides data.", + "publisher": "https://example.com/publisher1", + "endpointURL": "https://example.com/service1/endpoint1", + "contactPoint": "http://census.gov/contact" + }, + { + "@id": "https://data.census.gov/service2", + "@type": "dcat:DataService", + "title": "Data Service 2", + "description": "This is another service that provides data.", + "publisher": "https://example.com/publisher1", + "endpointURL": "https://example.com/service1/endpoint2", + "contactPoint": "http://census.gov/contact" + }, + { + "@id": "https://census.gov", + "@type": "foaf:Organization", + "name": "US Census Bureau", + "prefLabel": "US Census Bureau" }, { - "@id": "https://data.census.gov/service/123", - "@type": "dcat:DataService" + "@id": "http://census.gov/contact", + "@type": "vcard:Kind", + "fn": "US Census Info", + "hasEmail": "mailto:info@census.gov" } ] -} \ No newline at end of file +} diff --git a/docs/examples/catalog/catalog.ttl b/docs/examples/catalog/catalog.ttl index 67be9b0..2be99e5 100644 --- a/docs/examples/catalog/catalog.ttl +++ b/docs/examples/catalog/catalog.ttl @@ -2,6 +2,8 @@ @prefix dcterms: . @prefix foaf: . @prefix xsd: . +@prefix skos: . +@prefix vcard: . # ---------- class Catalog -------------------------------------------------- @@ -11,10 +13,10 @@ dcterms:title "US Census Open Data Catalog" ; dcterms:description "US Census Data Catalog" ; dcterms:publisher ; - + dcat:dataset , ; # recommended properties - dcat:dataset , ; + foaf:homepage ; dcat:service , ; dcterms:issued "2020-05-25"^^xsd:date ; @@ -28,22 +30,51 @@ # ---------- class Dataset -------------------------------------------------- - a dcat:Dataset . + a dcat:Dataset ; + dcterms:title "Dataset 123" ; + dcterms:description "This dataset contains information about..." ; + dcterms:publisher ; +. - a dcat:Dataset . - -# ---------- class Document -------------------------------------------------- - - a foaf:Document . + a dcat:Dataset ; + dcterms:title "Dataset 345" ; + dcterms:description "This dataset contains information about..." ; + dcterms:publisher ; + . # ---------- class DataService ----------------------------------------------- - - a dcat:DataService . + + a dcat:DataService ; + dcterms:title "Data Service 1" ; + dcterms:description "This is a service that provides data." ; + dcterms:publisher ; + dcat:endpointURL ; + dcat:contactPoint ; + . + + + + a dcat:DataService ; + + dcterms:title "Data Service 2" ; + dcterms:description "This is another service that provides data." ; + dcterms:publisher ; + dcat:endpointURL ; + dcat:contactPoint ; + . - - a dcat:DataService . # ---------- class Agent ----------------------------------------------------- - a foaf:Organization . \ No newline at end of file + a foaf:Organization ; + foaf:name "US Census Bureau" ; + skos:prefLabel "US Census Bureau" ; + . + + + a vcard:Kind ; + vcard:fn "US Census Info" ; + vcard:hasEmail + . + diff --git a/docs/examples/catalog/conforms-to.jsonld b/docs/examples/catalog/conforms-to.jsonld index ee49005..b4c2f0d 100644 --- a/docs/examples/catalog/conforms-to.jsonld +++ b/docs/examples/catalog/conforms-to.jsonld @@ -2,5 +2,12 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://census.gov/Catalog1", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://census.gov/Dataset1", + "https://census.gov/Dataset2" + ], "conformsTo": "http://resource.data.gov/profile/dcat-us#" -} \ No newline at end of file +} diff --git a/docs/examples/catalog/conforms-to.ttl b/docs/examples/catalog/conforms-to.ttl index b0a93a7..85cdcf6 100644 --- a/docs/examples/catalog/conforms-to.ttl +++ b/docs/examples/catalog/conforms-to.ttl @@ -4,5 +4,12 @@ a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + + # Catalog conforms to the DCAT-US profile dcterms:conformsTo ; . \ No newline at end of file diff --git a/docs/examples/catalog/dataset.jsonld b/docs/examples/catalog/dataset.jsonld index 0979a03..4e7a016 100644 --- a/docs/examples/catalog/dataset.jsonld +++ b/docs/examples/catalog/dataset.jsonld @@ -4,18 +4,27 @@ { "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", "dataset": [ "https://data.census.gov/data/123", "https://data.census.gov/data/345" ] }, { - "@id": "https://data.census.gov/data/345", - "@type": "dcat:Dataset" + "@id": "https://data.census.gov/data/123", + "@type": "dcat:Dataset", + "title": "Dataset 123", + "description": "This dataset contains information about...", + "publisher": "https://census.gov" }, { - "@id": "https://data.census.gov/data/123", - "@type": "dcat:Dataset" + "@id": "https://data.census.gov/data/345", + "@type": "dcat:Dataset", + "title": "Dataset 345", + "description": "This dataset contains information about...", + "publisher": "https://census.gov" } ] -} \ No newline at end of file +} diff --git a/docs/examples/catalog/dataset.ttl b/docs/examples/catalog/dataset.ttl index e57fa9a..62d43e3 100644 --- a/docs/examples/catalog/dataset.ttl +++ b/docs/examples/catalog/dataset.ttl @@ -1,19 +1,18 @@ @prefix dcat: . +@prefix dcterms: . +@prefix foaf: . +@prefix xsd: . # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; - # recommended property - dcat:dataset , - . - - - -# ---------- class Dataset -------------------------------------------------- - - a dcat:Dataset . - - - a dcat:Dataset . - + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + # default description of the catalog in english + dcterms:description "US Census Data Catalog", + #Spanish translation of description + "Catálogo de datos abiertos del censo de EE. UU."@es ; + dcterms:publisher ; + dcat:dataset , ; +. diff --git a/docs/examples/catalog/description.jsonld b/docs/examples/catalog/description.jsonld index 1cb7994..9be7349 100644 --- a/docs/examples/catalog/description.jsonld +++ b/docs/examples/catalog/description.jsonld @@ -2,6 +2,14 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", - "description": "US Census Data Catalog", - "title": "US Census Open Data Catalog" -} \ No newline at end of file + "title": "US Census Open Data Catalog", + "description": "US Census Open Data Catalog", + "descriptionMap": { + "es": "Catálogo de Datos Abiertos del Censo de EE. UU." + }, + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ] +} diff --git a/docs/examples/catalog/description.ttl b/docs/examples/catalog/description.ttl index f1a24df..d493640 100644 --- a/docs/examples/catalog/description.ttl +++ b/docs/examples/catalog/description.ttl @@ -6,7 +6,12 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; - - # mandatory properties dcterms:title "US Census Open Data Catalog" ; - dcterms:description "US Census Data Catalog" . \ No newline at end of file + + # description in multiple languages + dcterms:description "US Census Open Data Catalog" , + "Catálogo de Datos Abiertos del Censo de EE. UU."@es; + + dcterms:publisher ; + dcat:dataset , ; + . \ No newline at end of file diff --git a/docs/examples/catalog/homepage.jsonld b/docs/examples/catalog/homepage.jsonld index 764fdfc..6df9114 100644 --- a/docs/examples/catalog/homepage.jsonld +++ b/docs/examples/catalog/homepage.jsonld @@ -1,14 +1,13 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", - "@graph": [ - { - "@id": "https://data.census.gov/catalog", - "@type": "dcat:Catalog", - "homepage": "https://census.gov/catalog.html" - }, - { - "@id": "https://census.gov/catalog.html", - "@type": "foaf:Document" - } - ] -} \ No newline at end of file + "@id": "https://data.census.gov/catalog", + "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "homepage": "https://census.gov/catalog.html" +} diff --git a/docs/examples/catalog/homepage.ttl b/docs/examples/catalog/homepage.ttl index f4fb267..7524fa8 100644 --- a/docs/examples/catalog/homepage.ttl +++ b/docs/examples/catalog/homepage.ttl @@ -6,8 +6,12 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; - # recommended property + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + + # Homepage of the catalog foaf:homepage . - - a foaf:Document. \ No newline at end of file diff --git a/docs/examples/catalog/issued.jsonld b/docs/examples/catalog/issued.jsonld index 96f9d10..a77328b 100644 --- a/docs/examples/catalog/issued.jsonld +++ b/docs/examples/catalog/issued.jsonld @@ -2,8 +2,15 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", - "issued": { - "@type": "http://www.w3.org/2001/XMLSchema#date", - "@value": "2020-05-25" + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "issued": { + "@value" :"2020-05-25", + "@type": "xsd:date" } -} \ No newline at end of file +} diff --git a/docs/examples/catalog/issued.ttl b/docs/examples/catalog/issued.ttl index d24babc..1e525d8 100644 --- a/docs/examples/catalog/issued.ttl +++ b/docs/examples/catalog/issued.ttl @@ -5,6 +5,11 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; - - # recommended property + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + + # data of issuance of the catalog dcterms:issued "2020-05-25"^^xsd:date . diff --git a/docs/examples/catalog/language.jsonld b/docs/examples/catalog/language.jsonld index ed528af..711d167 100644 --- a/docs/examples/catalog/language.jsonld +++ b/docs/examples/catalog/language.jsonld @@ -2,6 +2,13 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], "language": [ "es", "en" diff --git a/docs/examples/catalog/language.ttl b/docs/examples/catalog/language.ttl index 505b470..9dd1f28 100644 --- a/docs/examples/catalog/language.ttl +++ b/docs/examples/catalog/language.ttl @@ -6,8 +6,13 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; - # recommended property + # language supported by the catalog dcterms:language , . diff --git a/docs/examples/catalog/license.jsonld b/docs/examples/catalog/license.jsonld index 7cd56ba..1924971 100644 --- a/docs/examples/catalog/license.jsonld +++ b/docs/examples/catalog/license.jsonld @@ -1,14 +1,13 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", - "@graph": [ - { - "@id": "https://data.census.gov/catalog", - "@type": "dcat:Catalog", - "license": "https://creativecommons.org/publicdomain/zero/1.0/" - }, - { - "@id": "https://creativecommons.org/publicdomain/zero/1.0/", - "@type": "dcterms:LicenseDocument" - } - ] -} \ No newline at end of file + "@id": "https://data.census.gov/catalog", + "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "license": "https://creativecommons.org/publicdomain/zero/1.0/" +} diff --git a/docs/examples/catalog/license.ttl b/docs/examples/catalog/license.ttl index f83f39e..e41372d 100644 --- a/docs/examples/catalog/license.ttl +++ b/docs/examples/catalog/license.ttl @@ -4,8 +4,12 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; # recommended property dcterms:license . - a dcterms:LicenseDocument . \ No newline at end of file diff --git a/docs/examples/catalog/modified.jsonld b/docs/examples/catalog/modified.jsonld index b914069..3faf0d8 100644 --- a/docs/examples/catalog/modified.jsonld +++ b/docs/examples/catalog/modified.jsonld @@ -2,8 +2,15 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], "modified": { - "@type": "http://www.w3.org/2001/XMLSchema#date", + "@type": "xsd:date", "@value": "2021-04-26" } } \ No newline at end of file diff --git a/docs/examples/catalog/modified.ttl b/docs/examples/catalog/modified.ttl index 9c7de90..189e783 100644 --- a/docs/examples/catalog/modified.ttl +++ b/docs/examples/catalog/modified.ttl @@ -4,5 +4,11 @@ a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + #recommended property dcterms:modified "2021-04-26"^^xsd:date . \ No newline at end of file diff --git a/docs/examples/catalog/publisher.jsonld b/docs/examples/catalog/publisher.jsonld index ea47082..65a20ea 100644 --- a/docs/examples/catalog/publisher.jsonld +++ b/docs/examples/catalog/publisher.jsonld @@ -1,15 +1,17 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", - "@graph": [ - { - "@id": "https://data.census.gov/catalog", - "@type": "dcat:Catalog", - "publisher": "https://census.gov" - }, - { - "@id": "https://census.gov", - "@type": "http://www.w3.org/ns/org#Organization", - "foaf:name": "US Census Bureau" - } - ] -} \ No newline at end of file + "@id": "https://data.census.gov/catalog", + "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "publisher": { + "@id": "https://census.gov", + "@type": "http://www.w3.org/ns/org#Organization", + "name": "US Census Bureau", + "prefLabel": "US Census Bureau" + } +} diff --git a/docs/examples/catalog/publisher.ttl b/docs/examples/catalog/publisher.ttl index 4651c04..2da7189 100644 --- a/docs/examples/catalog/publisher.ttl +++ b/docs/examples/catalog/publisher.ttl @@ -3,10 +3,16 @@ @prefix foaf: . @prefix xsd: . @prefix org: . - +@prefix skos: . # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + # mandatory properties dcterms:publisher ; @@ -15,4 +21,5 @@ a org:Organization; foaf:name "US Census Bureau"; + skos:prefLabel "US Census Bureau"; . \ No newline at end of file diff --git a/docs/examples/catalog/rights.jsonld b/docs/examples/catalog/rights.jsonld index 8a0bab9..0d79bbc 100644 --- a/docs/examples/catalog/rights.jsonld +++ b/docs/examples/catalog/rights.jsonld @@ -1,18 +1,19 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", - "@graph": [ - { - "@id": "http://www.example.com#Catalog1", - "@type": "dcat:Catalog", - "rights": "_:n778b9f3a6376437299617563a27bc44ab1" - }, - { - "@id": "_:n778b9f3a6376437299617563a27bc44ab1", - "@type": "dcterms:RightsStatement", - "rdfs:label": { - "@language": "en", - "@value": "\u00a9 20023 ACME Inc." - } + "@id": "https://data.census.gov/catalog", + "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "rights": { + "@id": "_:n778b9f3a6376437299617563a27bc44ab1", + "@type": "dcterms:RightsStatement", + "rdfs:label": { + "@language": "en", + "@value": "© 20023 ACME Inc." } - ] -} \ No newline at end of file + } +} diff --git a/docs/examples/catalog/rights.ttl b/docs/examples/catalog/rights.ttl index 8dfb80e..d0db32f 100644 --- a/docs/examples/catalog/rights.ttl +++ b/docs/examples/catalog/rights.ttl @@ -3,7 +3,14 @@ @prefix rdfs:. @prefix ex: . -ex:Catalog1 a dcat:Catalog ; + + a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + dcterms:rights [ a dcterms:RightsStatement ; rdfs:label "© 20023 ACME Inc."@en ] diff --git a/docs/examples/catalog/service.jsonld b/docs/examples/catalog/service.jsonld index 6e88cfa..a7023d4 100644 --- a/docs/examples/catalog/service.jsonld +++ b/docs/examples/catalog/service.jsonld @@ -1,37 +1,38 @@ { "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@graph": [ - { - "@id": "https://data.census.gov/data/345", - "@type": "dcat:Dataset" - }, - { - "@id": "https://census.gov", - "@type": "http://www.w3.org/ns/org#Organization" - }, - { - "@id": "https://data.census.gov/index.html", - "@type": "foaf:Document" - }, - { - "@id": "https://data.census.gov/data/123", - "@type": "dcat:Dataset" - }, { "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], "service": [ - "https://data.census.gov/service/123", - "https://data.census.gov/service/345" + "https://data.census.gov/service/service1", + "https://data.census.gov/service2" ] }, { - "@id": "https://data.census.gov/service/345", - "@type": "dcat:DataService" + "@id": "https://data.census.gov/service/service1", + "@type": "dcat:DataService", + "title": "Data Service 1", + "description": "This is a service that provides data.", + "publisher": "https://example.com/publisher1", + "endpointURL": "https://example.com/service1/endpoint1", + "contactPoint": "http://census.gov/contact" }, { - "@id": "https://data.census.gov/service/123", - "@type": "dcat:DataService" + "@id": "https://data.census.gov/service2", + "@type": "dcat:DataService", + "title": "Data Service 2", + "description": "This is another service that provides data.", + "publisher": "https://example.com/publisher1", + "endpointURL": "https://example.com/service1/endpoint2", + "contactPoint": "http://census.gov/contact" } ] -} \ No newline at end of file +} diff --git a/docs/examples/catalog/service.ttl b/docs/examples/catalog/service.ttl index 0a7cc86..b43425b 100644 --- a/docs/examples/catalog/service.ttl +++ b/docs/examples/catalog/service.ttl @@ -6,30 +6,36 @@ # ---------- class Catalog -------------------------------------------------- a dcat:Catalog ; - # recommended property + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + # services provided by the catalog dcat:service , . -# ---------- class Dataset -------------------------------------------------- - - a dcat:Dataset . - - - a dcat:Dataset . - -# ---------- class Document -------------------------------------------------- - - a foaf:Document . # ---------- class DataService ----------------------------------------------- - - a dcat:DataService . - - - a dcat:DataService . - -# ---------- class Agent ----------------------------------------------------- - - a org:Organization . \ No newline at end of file +# ---------- class DataService ----------------------------------------------- + + a dcat:DataService ; + dcterms:title "Data Service 1" ; + dcterms:description "This is a service that provides data." ; + dcterms:publisher ; + dcat:endpointURL ; + dcat:contactPoint ; + . + + + + a dcat:DataService ; + + dcterms:title "Data Service 2" ; + dcterms:description "This is another service that provides data." ; + dcterms:publisher ; + dcat:endpointURL ; + dcat:contactPoint ; + . diff --git a/docs/examples/catalog/spatial.ttl b/docs/examples/catalog/spatial.ttl index 75e59a6..452141b 100644 --- a/docs/examples/catalog/spatial.ttl +++ b/docs/examples/catalog/spatial.ttl @@ -3,8 +3,15 @@ @prefix locn: . @prefix gsp: . + - a dcat:Catalog; + a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + dcterms:spatial [ a dcterms:Location ; locn:geometry """POLYGON (( diff --git a/docs/examples/catalog/theme-taxonomy.jsonld b/docs/examples/catalog/theme-taxonomy.jsonld index 4f11dd1..6b826a4 100644 --- a/docs/examples/catalog/theme-taxonomy.jsonld +++ b/docs/examples/catalog/theme-taxonomy.jsonld @@ -2,7 +2,12 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", - "themeTaxonomy": [ - "http://data.gov/resource/authority/data-theme" - ] -} \ No newline at end of file + "title": "US Census Open Data Catalog", + "description": "US Census Data Catalog", + "publisher": "https://census.gov", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], + "themeTaxonomy": "http://data.gov/resource/authority/data-theme" +} diff --git a/docs/examples/catalog/theme-taxonomy.ttl b/docs/examples/catalog/theme-taxonomy.ttl index d1e6f1c..62aa7d2 100644 --- a/docs/examples/catalog/theme-taxonomy.ttl +++ b/docs/examples/catalog/theme-taxonomy.ttl @@ -2,6 +2,12 @@ a dcat:Catalog ; + # mandatory properties + dcterms:title "US Census Open Data Catalog" ; + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; - #Recommended Property - dcat:themeTaxonomy . + + # theme taxonomy used by the catalog + dcat:themeTaxonomy . diff --git a/docs/examples/catalog/title.jsonld b/docs/examples/catalog/title.jsonld index 6a97d1e..f7f3456 100644 --- a/docs/examples/catalog/title.jsonld +++ b/docs/examples/catalog/title.jsonld @@ -2,8 +2,13 @@ "@context": "https://raw.githubusercontent.com/DOI-DO/dcat-us/main/context/dcat-us-3.0.jsonld", "@id": "https://data.census.gov/catalog", "@type": "dcat:Catalog", + "description": "US Census Data Catalog", + "dataset": [ + "https://data.census.gov/data/123", + "https://data.census.gov/data/345" + ], "title": "US Census Open Data Catalog", "titleMap": { - "es": "Cat\u00e1logo de Datos Abiertos del Censo de EE. UU." + "es": "Catálogo de Datos Abiertos del Censo de EE. UU." } -} \ No newline at end of file +} diff --git a/docs/examples/catalog/title.ttl b/docs/examples/catalog/title.ttl index 001ccfe..bcf1269 100644 --- a/docs/examples/catalog/title.ttl +++ b/docs/examples/catalog/title.ttl @@ -7,6 +7,12 @@ a dcat:Catalog ; - # mandatory properties + # title in English and Spanish dcterms:title "US Census Open Data Catalog", - "Catálogo de Datos Abiertos del Censo de EE. UU."@es . + "Catálogo de Datos Abiertos del Censo de EE. UU."@es ; + + dcterms:description "US Census Data Catalog" ; + dcterms:publisher ; + dcat:dataset , ; + +. \ No newline at end of file