oslc-op / oslc-specs

OSLC OP specifications and notes
https://open-services.net/specifications/
25 stars 10 forks source link

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

Open DavidJohnHoney opened 1 year ago

DavidJohnHoney commented 1 year ago

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 .