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

Support for Triple Terms #50

Open
gkellogg opened this issue Jan 23, 2025 · 2 comments · May be fixed by #54
Open

Support for Triple Terms #50

gkellogg opened this issue Jan 23, 2025 · 2 comments · May be fixed by #54
Labels
spec:new-feature Change adding new functionality (class 4)

Comments

@gkellogg
Copy link
Member

gkellogg commented Jan 23, 2025

This issue is to discuss adding minimal support for Triple Terms in RDF/XML, using parseType="Triple".

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:ex="http://example.org/stuff/1.0/"
            xml:base="http://example.org/triples/">
  <rdf:Description rdf:about="http://example.org/">
    <ex:prop rdf:parseType="Triple">
      <rdf:Description rdf:about="http://example.org/stuff/1.0/s">
        <ex:p rdf:resource="http://example.org/stuff/1.0/o" />
      </rdf:Description>
    </ex:prop>
  </rdf:Description>

</rdf:RDF>

Wording and/or parser state will need to be described to prevent nested statements under the triple term.

Potential syntax for reifiers could be considered separately.

Note that there are a number of different ways to specify a triple in RDF/XML, any of which should work once embedded in parseType="Triple".

Note that this should not represent any compatibility issues, as parseType values are controlled by the spec. But, we may want to signal that the spec version is 1.2 somehow.

@TallTed

This comment has been minimized.

@FabienGandon
Copy link

I like the proposal of an rdf:parseType="TripleTerm" and looking at other issues I would expect a rdf:version="1.2" here too

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:ex="http://example.org/stuff/1.0/"
            xml:base="http://example.org/triples/" rdf:version="1.2">
  <rdf:Description rdf:about="http://example.org/">
    <ex:prop rdf:parseType="TripleTerm">
      <rdf:Description rdf:about="http://example.org/stuff/1.0/s">
        <ex:p rdf:resource="http://example.org/stuff/1.0/o" />
      </rdf:Description>
    </ex:prop>
  </rdf:Description>

</rdf:RDF>

gkellogg added a commit that referenced this issue Jan 31, 2025
@gkellogg gkellogg linked a pull request Jan 31, 2025 that will close this issue
gkellogg added a commit that referenced this issue Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:new-feature Change adding new functionality (class 4)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants