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

Example 10 contains flawed Turtle #31

Closed
ssstolk opened this issue Feb 17, 2021 · 3 comments
Closed

Example 10 contains flawed Turtle #31

ssstolk opened this issue Feb 17, 2021 · 3 comments

Comments

@ssstolk
Copy link

ssstolk commented Feb 17, 2021

Example 10 of https://www.w3.org/TR/2019/WD-dx-prof-conneg-20191126/ contains typos that mean it does not conform to the Turtle format.

# Link headers above represented in Alternate Profiles Data Model
# as an OWL ontology
<http://example.org/resource/a>
    altp:hasDefaultRepresentation [
        dct:format "text/turtle" ;
        dct:conformsTo <urn:example:profile:x> ;
    ] ,
    altp:hasRepresentation [
        dct:format "text/turtle" ;
        dct:conformsTo <urn:example:profile:y> ;
    ] ,
    [
        dct:format "application/xml" ;
        dct:conformsTo <urn:example:profile:x> ;
    ] ,
    <http://example.org/resource/different> ,
    [
        dct:format "text/html" ;
    ] .

<http://example.org/resource/different>
    dct:format "application/xml" ;
    dct:conformsTo <urn:example:profile:y> .

Here, semicolons instead of commas ought to be used whenever a property follows (lines 7 and 15 in the snippet above).

@rob-metalinkage
Copy link
Contributor

addressed in #42

@pchampin
Copy link
Contributor

The comma line 7 (,) should indeed be replaced by a semicolon (;).
Line 15, on the other hand, is correct (the IRI following the comma is another object to the predicate altp:hasDefaultRepresentation).

@rob-metalinkage
Copy link
Contributor

Extracted example into a separate TTL file - to explore building spec from validated examples instead of inline code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants