Re: Jena support for Named Graphs syntax

On 1 March 2023 13:39:17 CET, Ghinwa FAKIH <ginwa.fakih@etu.univ-nantes.fr> wrote:
>Hello,
>
>I was trying to load a toy example on named graphs approach in Jena and test it using some queries.
>
>While doing this, the syntax below didn't work for me:
>
>|ex:G rdfg:isGraph { ex:B ex:prop2 ex:C } |
>
>But instead this syntax using GraphLiteral works.
>
>ex:G rdfg:isGraph "ex:B ex:prop2 ex:C"^^rdfl:GraphLiteral
>
>Why the curly brackets are not supported?

If, as I'm assuming, you are trying tonparse it as Turtle, the answer is: because this is not valid Turtle, while your 2nd example is (assuming the appropriate prefix declaration).

The curly brackets used that way are valid in Notation 3, which I don't think is supported by Jena. There is however an N3 implementation based on Jena, called Jen3.

> Is there a particular configuration or something I do to be used in Jena for named graphs.

Nitpicking: your example is not strictly speaking about *named graphs*. Those are supported by Jena using TriG or N-quads, but the syntax is different from your example.


>
>Thank you

-- Sent from /e/ Mail.

Received on Wednesday, 1 March 2023 19:09:20 UTC