Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SO
OC
MVP
Commits
0cd42c2e
Commit
0cd42c2e
authored
7 months ago
by
Mathieu Dartigues
Browse files
Options
Downloads
Patches
Plain Diff
Replace OcConceptScheme + Add graph to distribution SparQL query
parent
a4f4face
Branches
Branches containing commit
No related tags found
1 merge request
!64
Add distribution descriptor
Pipeline
#10789
passed
7 months ago
Stage: test
Stage: build
Stage: deploy
Stage: teardown
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/declarations.ts
+5
-0
5 additions, 0 deletions
src/declarations.ts
src/sparql/distribution.ts
+7
-3
7 additions, 3 deletions
src/sparql/distribution.ts
with
12 additions
and
3 deletions
src/declarations.ts
+
5
−
0
View file @
0cd42c2e
...
@@ -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
}
>
...
...
This diff is collapsed.
Click to expand it.
src/sparql/distribution.ts
+
7
−
3
View file @
0cd42c2e
...
@@ -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
}
").
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment