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

turtle serialization of same rdf:List in different triples as object fails #73

Closed
WhiteGobo opened this issue Mar 14, 2025 · 0 comments
Closed

Comments

@WhiteGobo
Copy link

I have a list which i use in different triples:

@prefix ns1: <http://example.com/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

[] ns1:prop _:Ne7d .

[] ns1:prop _:Ne7d .

_:N849 rdf:first ns1:b ;
    rdf:rest () .

_:Ne7d rdf:first ns1:a ;
    rdf:rest _:N849 .

When using rapper, the list ist broken:

rapper -i turtle -o turtle test.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ns1: <http://example.com/> .

(ns1:a
    ns1:b
) .

[]
    ns1:prop _:Ne7d .

[]
    ns1:prop _:Ne7d .

Found this error during working with the raptor library. So the error should also exist, when using the serializer directly from raptor_new_serializer

Tested on archlinux. raptor version 2.0.16-6

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

1 participant