more elaborate low
This commit is contained in:
@@ -403,6 +403,16 @@
|
||||
:to-graph (public shared)
|
||||
:for-allowed-group "public")
|
||||
|
||||
;; natural-language-report-service reads the public graph under its own
|
||||
;; scope during refinement (code lists, lookup_values). The service passes
|
||||
;; this scope with mu's query(q, { scope }); sparql-parser then uses only
|
||||
;; this grant, so the LLM reads public data and nothing beyond it.
|
||||
;; Execution (run_report) still runs as the caller's session.
|
||||
(with-scope "http://services.semantic.works/natural-language-report"
|
||||
(grant (read)
|
||||
:to-graph public
|
||||
:for-allowed-group "public"))
|
||||
|
||||
(grant (read write)
|
||||
:to-graph (reports jobs system-jobs)
|
||||
:for-allowed-group "o-admin-rwf")
|
||||
|
||||
61
config/report-profiles/codes-en-schemas.ttl
Normal file
61
config/report-profiles/codes-en-schemas.ttl
Normal file
@@ -0,0 +1,61 @@
|
||||
# Profiel "Codes en schemas": skos:Concept en skos:ConceptScheme.
|
||||
# De codelijsten van de andere profielen zijn skos:Concept-instanties die bij
|
||||
# een schema horen via skos:inScheme. Met dit profiel kan de LLM een schema
|
||||
# opzoeken en de concepten eruit tonen (bijvoorbeeld om een filterwaarde te
|
||||
# kiezen). De andere profielen verwijzen naar ent:Concept via sh:node; dit
|
||||
# profiel maakt van die entiteiten zelfstandig bevraagbare rapportonderwerpen.
|
||||
#
|
||||
# Rapporten hier zijn leeslijsten: een lijst van de concepten van één schema,
|
||||
# of van schemas zelf. Ze landen in de publieke grafiek.
|
||||
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix dct: <http://purl.org/dc/terms/> .
|
||||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
||||
@prefix ent: <http://data.lblod.info/id/report-entities/> .
|
||||
|
||||
<http://data.lblod.info/id/report-profiles/skos-concepten>
|
||||
a owl:Ontology ;
|
||||
dct:title "Codes en schemas" ;
|
||||
sh:prefixes [
|
||||
sh:declare [ sh:prefix "skos" ; sh:namespace "http://www.w3.org/2004/02/skos/core#"^^xsd:anyURI ] ;
|
||||
sh:declare [ sh:prefix "dct" ; sh:namespace "http://purl.org/dc/terms/"^^xsd:anyURI ] ;
|
||||
sh:declare [ sh:prefix "rdfs" ; sh:namespace "http://www.w3.org/2000/01/rdf-schema#"^^xsd:anyURI ] ;
|
||||
sh:declare [ sh:prefix "xsd" ; sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI ] ;
|
||||
] .
|
||||
|
||||
ent:Concept
|
||||
a sh:NodeShape ;
|
||||
rdfs:label "concept" ;
|
||||
sh:targetClass skos:Concept ;
|
||||
sh:property [ sh:path skos:prefLabel ; sh:name "naam" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path skos:altLabel ; sh:name "andere naam" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path skos:notation ; sh:name "notatie" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path skos:definition ; sh:name "definitie" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path sh:order ; sh:name "volgorde" ;
|
||||
sh:datatype xsd:decimal ] ;
|
||||
sh:property [ sh:path skos:inScheme ; sh:name "in schema" ;
|
||||
sh:description "Filter hiermee op één codeschema." ;
|
||||
sh:node ent:ConceptSchema ] ;
|
||||
sh:property [ sh:path skos:topConceptOf ; sh:name "top van schema" ;
|
||||
sh:node ent:ConceptSchema ] ;
|
||||
sh:property [ sh:path skos:exactMatch ; sh:name "exacte match" ;
|
||||
sh:node ent:Concept ] .
|
||||
|
||||
ent:ConceptSchema
|
||||
a sh:NodeShape ;
|
||||
rdfs:label "conceptschema" ;
|
||||
sh:targetClass skos:ConceptScheme ;
|
||||
sh:property [ sh:path skos:prefLabel ; sh:name "naam" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path rdfs:label ; sh:name "label" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path dct:title ; sh:name "titel" ;
|
||||
sh:datatype xsd:string ] ;
|
||||
sh:property [ sh:path skos:notation ; sh:name "notatie" ;
|
||||
sh:datatype xsd:string ] .
|
||||
@@ -16,7 +16,7 @@
|
||||
# Niet opgenomen (geen rapportvelden): harvest-velden en vendor-relaties.
|
||||
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix dct: <http://purl.org/dc/terms/> .
|
||||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
||||
|
||||
Reference in New Issue
Block a user