Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Подготовить пример SPARQL запроса с доп условиями проверки прав доступа на основе тестовых данных #1

Open
amivanoff opened this issue Apr 12, 2020 · 0 comments
Assignees

Comments

@amivanoff
Copy link
Member

Пример запроса на выборку артефактов

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX rm: <http://cpgu.kbpm.ru/ns/rm/rdf#>
SELECT ?eIri0 ?targetClass0 ?title0 ?description0 ?inCreationMenu0 ?defaultIndividNs0 ?defaultFormat0 ?iconReference0 WHERE {
  ?eIri0 rdf:type sh:NodeShape;
    sh:targetClass ?targetClass0.
  OPTIONAL { ?eIri0 dcterms:title ?title0. }
  OPTIONAL { ?eIri0 dcterms:description ?description0. }
  OPTIONAL { ?eIri0 rm:inCreationMenu ?inCreationMenu0. }
  OPTIONAL { ?eIri0 rm:defaultIndividNs ?defaultIndividNs0. }
  OPTIONAL { ?eIri0 rm:defaultFormat ?defaultFormat0. }
  OPTIONAL { ?eIri0 rm:iconReference ?iconReference0. }
  FILTER(?targetClass0 = rm:Artifact)
}

Пример самих данных, схемы данных (классов) и ограничений на доступ в папке https://github.com/agentlab/rdf4j-karaf-access-control/tree/master/ru.agentlab.rdf4j.ppo/src/test/resources

@Enfaseel Enfaseel linked a pull request Apr 22, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants