Expand IRI in object position #876
Unanswered
multimeric
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with SHACL where
sh:class
expects the IRI of a class. Therefore, I wantsh:class
to behave with the same magic properties as@type
, so that it always treats its object as an IRI, and always expands it. The goal is to be able to do{"class": "Foo"}
in the actual graph, with whatever@context
hacks are necessary. I'm finding this very difficult however. Can anyone suggest a solution?My attempts are below.
First I try just marking
class
as taking an IRI, but this doesn't expandFoo
:Trying to play with
Foo
's own@type
has no effect, e.g.Or
The only hacky workaround I can find is to mark
Foo
as a prefix and then also add a colon (which I don't want):Beta Was this translation helpful? Give feedback.
All reactions