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

OSLC Core 3.0 includes example in RDF/XML that is not valid #594

Open
DavidJohnHoney opened this issue Aug 1, 2023 · 0 comments
Open

OSLC Core 3.0 includes example in RDF/XML that is not valid #594

DavidJohnHoney opened this issue Aug 1, 2023 · 0 comments

Comments

@DavidJohnHoney
Copy link

Section 4.1.10.3 Response Information of https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/oslc-core.html includes Example 4: Resource Paging, partial response with response info resource representation. There are two problems with that example:

  1. All examples should be in Turtle. This example is in RDF/XML.
  2. The RDF/XML is not valid! It is missing the namespace definition for oslc, and the contents of the blog entry are not valid RDF.

A correct example, in Turtle, might be:

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix oslc: <http://open-services.net/ns/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/blogs/entry/1?oslc.paging=true&pageSize=200&pageno=2>
  a oslc:ResponseInfo ;
  oslc:nextPage <http://example.com/blogs/entry/1?oslc.paging=true&pageSize=200&pageno=3> .

<http://example.com/blogs/entry/1>
  dcterms:title "John's first blog" ;
  dcterms:created "2023-04-01'T'09:30:00"^^xsd:dateTime .
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