[oslc-core] Shapeless query result example
Dave
snoopdave at gmail.com
Mon Aug 9 11:02:13 EDT 2010
We talked about the need for an example that shows what a query
resource would look like if there were no Resource Shape provided by
the Query Capability. Arthur suggested that we do not need to define a
query result type or a member property, and could simply return
triples about the result URIs plus an oslc:ResponseInfo resource (if
needed).
Here's an example of that form, which fits in with the examples in
Appendix B and validates: http://tinyurl.com/26tetbv
1:
2: <rdf:RDF
3: xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
4: xmlns:dcterms="http://purl.org/dc/terms/"
5: xmlns:oslc="http://open-services.net/ns/core#"
6: xmlns:oslc_blog="http://open-services.net/ns/bogus/blogs#">
7:
8: <oslc:ResponseInfo
rdf:about="http://example.com/query?oslc.from [...] entry/1>">
9: <dcterms:title>Blog Service Query Results for term
[remote]</dcterms:title>
10: </oslc:ResponseInfo>
11:
12:
13: <rdf:Description rdf:about="http://example.com/blogs/comment/5">
14: <!-- Comment propery values, etc. -->
15: <dcterms:title>Comment #5</dcterms:title>
16: </rdf:Description>
17:
18: <rdf:Description rdf:about="http://example.com/blogs/comment/4">
19: <!-- Comment propery values, etc. -->
20: <dcterms:title>Comment #4</dcterms:title>
21: </rdf:Description>
22:
23: <rdf:Description rdf:about="http://example.com/blogs/comment/2">
24: <!-- Comment propery values, etc. -->
25: <dcterms:title>Comment #2</dcterms:title>
26: </rdf:Description>
27:
28: <rdf:Description rdf:about="http://example.com/blogs/comment/1">
29: <!-- Comment propery values, etc. -->
30: <dcterms:title>Comment #1</dcterms:title>
31: </rdf:Description>
32:
33: <rdf:Description rdf:about="http://example.com/blogs/comment/3">
34: <!-- Comment propery values, etc. -->
35: <dcterms:title>Comment #3</dcterms:title>
36: </rdf:Description>
37:
38: <!-- etc. etc. -->
39:
40: </rdf:RDF>
Look correct? Any objections to or concerns about adding this to Appendix B?
Thanks,
Dave
More information about the Oslc-Core
mailing list