Skip to content
Snippets Groups Projects
Commit 0cd42c2e authored by Mathieu Dartigues's avatar Mathieu Dartigues
Browse files

Replace OcConceptScheme + Add graph to distribution SparQL query

parent a4f4face
Branches
No related tags found
1 merge request!64Add distribution descriptor
Pipeline #10789 passed
...@@ -151,6 +151,11 @@ export type OcConcept = { ...@@ -151,6 +151,11 @@ export type OcConcept = {
narrower?: string[] narrower?: string[]
} }
export type OcConceptScheme = {
'@id': string
prefLabel: LocalizedProperty<string>
}
export type OcGeometry = { export type OcGeometry = {
'@id'?: string '@id'?: string
geometry: Array<{ '@type': string; '@value': string }> geometry: Array<{ '@type': string; '@value': string }>
......
...@@ -129,11 +129,15 @@ export async function getDistribution( ...@@ -129,11 +129,15 @@ export async function getDistribution(
` `
CONSTRUCT { CONSTRUCT {
?distribution ?p ?o. ?distribution ?p ?o.
?distribution oct:graph ?g.
} }
WHERE { WHERE {
?distribution a dcat:Distribution; ?distribution ?p ?o;
?p ?o. a dcat:Distribution.
?distribution dct:identifier ?identifier.
GRAPH ?g {
?distribution dct:identifier ?identifier.
}
FILTER (str(?identifier) = "${identifier}"). FILTER (str(?identifier) = "${identifier}").
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment