datova-kancelaria / nkod-pipeline

Obsahuje export LP-ETL pipeline NKOD pro deployment do k8s
0 stars 1 forks source link

Neharvestuje sa položka dct:description katalógu - príprava query #20

Closed miroslavliska closed 10 months ago

miroslavliska commented 10 months ago

V SPARQL Construct DPU chýba položka dct:description. Opravený dotaz je nižšie.

miroslavliska commented 10 months ago
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>

CONSTRUCT {
  ?catalog a dcat:Catalog, ?type ;
    dcat:endpointURL ?catalog_endpoint ;
    dcterms:title ?title ;
    dcterms:description ?description ;
    dcat:contactPoint ?cp ;
    foaf:homepage ?homepage ;
    dcterms:publisher ?publisher .

  ?cp a ?cptype ;
    vcard:fn ?cpfn ;
    vcard:hasEmail ?cpemail .
}
WHERE {
  ?catalog a dcat:Catalog, ?type ;
    dcat:endpointURL ?catalog_endpoint ;
    dcterms:title ?title ;
    dcterms:description ?description ;
    dcterms:publisher ?publisher ;
    dcat:contactPoint ?cp .
  ?cp a ?cptype ;
    vcard:fn ?cpfn ;
    vcard:hasEmail ?cpemail .
  OPTIONAL { ?catalog foaf:homepage ?homepage . }
  FILTER ( ?type != dcat:Catalog)
}