Samples
In these examples, the server is running on
https://doors.example.com:9443/ Click on the links to see the RDF/XML of these resources, along with a validation check that the RDF/XML is well-formed. The samples are attached to the wiki page.
Browsers don't render RDF/XML in a very user friendly manner. Try [[http://dig.csail.mit.edu/2007/tab/][Tabulator],
OwlSight,
RDF Gravity.
Discovery
ServiceProviderCatalog?
GET /RMCatalog
OSLC-Core-Version: 2.0
Accept: application/rdf+xml
RMCatalog.xml - Service Provider Catalogue
ServiceProvider?
GET/rm/discovery/_MMVuUKubEd-RtuHDdcBPAg/services.xml
OSLC-Core-Version: 2.0
Accept: application/rdf+xml
ServiceProvider.xml - Service Provider
Domain Resources
Requirement
Example Relationship properties
RDF/XML and XML example using reified statement:
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc_rm="http://open-services.net/ns/rm#">
<oslc_rm:Requirement rdf:about="http://doors.example.com/reqs/1">
<oslc_rm:implementedBy rdf:ID="link1"
rdf:resource="http://rtc.example.com/wi/2" />
</oslc_rm:Requirement>
<rdf:Description rdf:about="#link1">
<dcterms:title rdf:parseType="Literal">Task 2</dcterms:title>
</rdf:Description>
</rdf:RDF>
JSON example using refied statement:
{
"prefixes" : {
"dcterms" : "http://purl.org/dc/terms/",
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"oslc" : "http://open-services.net/ns/core#",
"oslc_rm" : "http://open-services.net/ns/rm#"
},
"rdf:type" : [ { "rdf:resource" : "http://open-services.net/ns/rm#ChangeRequest" }],
"rdf:about" : "http://doors.example.com/reqs/1",
"oslc_rm:implementedBy" : {
"rdf:resource" : "http://rtc.example.com/wi/2",
"dcterms:title " : "Task 2"
}
}
Topic revision: r8 - 21 Nov 2010 - 20:49:47 -
IanGreen