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

JSON-LD @context generator : when there is an inverse property in the SHACL, generate a mapping with "inverse_xxxx" + @reverse #151

Open
tfrancart opened this issue Jun 10, 2024 · 2 comments
Assignees

Comments

@tfrancart
Copy link
Contributor

Exemple avec ce SHACL : https://europarl.github.io/eli-ep/dsd/adopted-texts/eli-ep_adopted-texts.shacl.ttl (visible at https://europarl.github.io/eli-ep/dsd/adopted-texts/)

image

ta:P27 owl:versionInfo "1.0";
  sh:path _:a4aeb3f30c2042e3b539bc99a24f35721159;
  sh:name "inverse corrects"@en;
  sh:nodeKind sh:IRI;
  sh:node ta:Corrigendum;
  shacl-play:shortname "inverse_corrects" .

_:a4aeb3f30c2042e3b539bc99a24f35721159 sh:inversePath eli:corrects .

alors on doit générer

"inverse_corrects": {
  "@reverse" : "eli:corrects",
  "@type" : "@id"
}
@tfrancart
Copy link
Contributor Author

Note : ici il y a un "shacl-play:shortname", mais on devrait de toutes façon générer une clé spéciale avec "inverse_" et le nom de la clé normale.

@tfrancart
Copy link
Contributor Author

to test On branch JsonLd_inversePath

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

No branches or pull requests

2 participants