This wiki is locked. Future workgroup activity and specification development must take place at
our new wiki
. For more information, see
this blog post about the new governance model
and
this post about changes to the website
.
TWiki
>
Main Web
>
OslcCore
>
OslcCoreSpecification
>
OSLCCoreSpecAtomExamples
(22 Nov 2010,
DaveJohnson
)
(raw view)
---+ ---+ OSLC Core Specification: <br />Atom XML Representation examples In this section we provide Atom format representations of the resources defined in the [[OSLCCoreSpecRDFXMLExamples][RDF/XML examples]]. These example representations following the Atom format representation guidance offered in [[OSLCCoreSpecAppendixRepresentations][OSLC Core Specification Appendix B]]. ---++ Resource Below is an example Atom entry representation of the example blog entry. <blockquote><verbatim> <entry> <id>http://example.com/blogs/entry/1</id> <title>I love trash</title> <author><name>Oscar T. Grouch</name></author> <content type="application/rdf+xml> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://http://xmlns.com/foaf/0.1/" xmlns:oslc_blog="http://open-services.net/ns/bogus/blogs#"> <oslc_blog:Entry rdf:about="http://example.com/blogs/entry/1"> <rdf:type rdf:resource="http://open-services.net/ns/bogus/blogs#Entry" /> <dcterms:title>I love trash</dcterms:title> <dcterms:modified>2002-10-10T12:00:00-05:00</dcterms:modified> <dcterms:content> Anything dirty or dingy or dusty. Anything ragged or rotten or rusty. </dcterms:content> <dcterms:creator> <foaf:Person> <foaf:name>Oscar T. Grouch</foaf:name> </foaf:Person> </dcterms:creator> </oslc_blog:Entry> </rdf:RDF> </content> </entry> </verbatim></blockquote> Below is an example Atom entry representation of the example blog comment. <blockquote><verbatim> <entry> <id>http://example.com/comments/1</id> <title>Blog Comment</title> <author><name>William B. Bird</name></author> <content type="application/rdf+xml> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://http://xmlns.com/foaf/0.1/" xmlns:oslc_blog="http://open-services.net/ns/bogus/blogs#"> <oslc_blog:Comment rdf:about="http://example.com/comments/1"> <oslc_blog:entry rdf:resource="http://example.com/blogs/entry/1" /> <dcterms:content>LOL! Tell us how you really feel, Oscar.</dcterms:content> <dcterms:modified>2002-10-10T12:12:23-05:00</dcterms:modified> <dcterms:creator> <foaf:Person> <foaf:name>William B. Bird</foaf:name> </foaf:Person> </dcterms:creator> </oslc_blog:Comment> </rdf:RDF> </content> </entry> </verbatim></blockquote> ---++ Query Resource Below is an example Atom feed representation of the example blog query result. Click [[http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fopen-services.net%2Fpub%2FMain%2FOSLCCoreSpecAtomExamples%2Fatom-core-example.xml][HERE]] to see Atom Syndication Format validation. <blockquote><verbatim> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:oslc_blog="http://open-services.net/ns/bogus#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:oslc="http://open-services.net/ns/core#"> <id>http://example.com/query?page=2&oslc...</id> <title>Blog Query Results for term [remote]</title> <updated>2009-10-10T12:00:00-05:00</updated> <author><name>OSLC Example Query Implementation</name></author> <link rel="self" href="http://example.com/query?oslc.from...entry/1" /> <link rel="next" href="http://example.com/query?page=2&oslc.from...entry/1" /> <entry> <id>http://example.com/blogs/comment/1</id> <title>Blog Query Result for term [remote]</title> <updated>2009-10-10T12:00:00-05:00</updated> <content type="application/rdf+xml"> <rdf:RDF> <oslc_blog:BlogComment rdf:about="http://example.com/query"> <oslc_blog:comment rdf:resource="http://example.com/blogs/comment/1" /> </oslc_blog:BlogComment> </rdf:RDF> </content> </entry> <entry> <id>http://example.com/blogs/comment/5</id> <title>Blog Query Result for term [remote]</title> <updated>2009-10-10T12:00:00-04:45</updated> <content type="application/rdf+xml"> <rdf:RDF> <oslc_blog:BlogComment rdf:about="http://example.com/query"> <oslc_blog:comment rdf:resource="http://example.com/blogs/comment/5" /> </oslc_blog:BlogComment> </rdf:RDF> </content> </entry> <entry> <id>http://example.com/blogs/comment/4</id> <title>Blog Query Result for term [remote]</title> <updated>2009-10-10T12:00:00-04:30</updated> <content type="application/rdf+xml"> <rdf:RDF> <oslc_blog:BlogComment rdf:about="http://example.com/query"> <oslc_blog:comment rdf:resource="http://example.com/blogs/comment/4" /> </oslc_blog:BlogComment> </rdf:RDF> </content> </entry> <entry> <id>http://example.com/blogs/comment/3</id> <title>Blog Query Result for term [remote]</title> <updated>2009-10-10T12:00:00-04:15</updated> <content type="application/rdf+xml"> <rdf:RDF> <oslc_blog:BlogComment rdf:about="http://example.com/query"> <oslc_blog:comment rdf:resource="http://example.com/blogs/comment/3" /> </oslc_blog:BlogComment> </rdf:RDF> </content> </entry> <entry> <id>http://example.com/blogs/comment/2</id> <title>Blog Query Result for term [remote]</title> <updated>2009-10-10T12:00:00-04:05</updated> <content type="application/rdf+xml"> <rdf:RDF> <oslc_blog:BlogComment rdf:about="http://example.com/query"> <oslc_blog:comment rdf:resource="http://example.com/blogs/comment/2" /> </oslc_blog:BlogComment> </rdf:RDF> </content> </entry> </feed> </verbatim></blockquote>
Attachments
Attachments
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
xml
atom-core-example.xml
manage
2.8 K
22 Nov 2010 - 21:11
DaveJohnson
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r5 - 22 Nov 2010 - 21:32:34 -
DaveJohnson
Main.OSLCCoreSpecAtomExamples moved from Main.OSLCCoreSpecAppendixE on 22 Oct 2010 - 18:35 by
DaveJohnson
-
put it back
Main
Main Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
Sandbox
TWiki
Български
Cesky
Dansk
Deutsch
English
Español
Français
Italiano
日本語
Nederlands
Polski
Português
Русский
Svenska
简体中文
簡體中文
Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our
Terms of Use
Ideas, requests, problems regarding this site?
Send feedback