Ian,

The behavior you describe is correct. If you want nested properties, you 
need to request them explicitly. The fact that some node is blank should 
not alter the semantics of the query language. 

I think it is more reasonable to return a CBD when you request the 
resource /req/r1

Regards, 
___________________________________________________________________________ 

Arthur Ryman 

DE, PPM & Reporting Chief Architect
IBM Software, Rational 
Toronto Lab | +1-905-413-3077 (office) | +1-416-939-5063 (mobile) 





From:
Ian Green1 <[email protected]>
To:
[email protected]
Cc:
Brett Graf <[email protected]>
Date:
03/14/2012 10:11 AM
Subject:
[oslc-core] Question on oslc.properties
Sent by:
[email protected]



Would someone confirm/clarify the behaviour of oslc.properties in the case 
of resources containing blank nodes? 


Consider the following RDF (turtle): 

@prefix dc: <http://purl.org/dc/terms/>. 
@prefix oslc_rm: <http://open-services.net/ns/rm#>. 
@prefix foaf: <http://xmlns.com/foaf/0.1/>. 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. 
@prefix doors: <http://doors.example.com/req/>. 

doors:r1 a oslc_rm:Requirement; 
   dc:title "Title"; 
   dc:contributor [ a foaf:Person; foaf:givenName "caligula" ]. 


The following request 
GET /req/r1?oslc.properties=* 
Host: doors.example.com 

Will return the following RDF: 
@prefix dc: <http://purl.org/dc/terms/>. 
@prefix oslc_rm: <http://open-services.net/ns/rm#>. 
@prefix foaf: <http://xmlns.com/foaf/0.1/>. 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. 
@prefix doors: <http://doors.example.com/req/>. 

doors:r1 a oslc_rm:Requirement; 
   dc:title "Title"; 
   dc:contributor [ ]. 


Which is not really that useful.   Nested properties could be requested 
but this may include more information that desired.  Beyond V2, what might 
be more useful is a concise bounded description [1] of the blank node to 
be included in the response. 

Any comments or clarifications? 

[1] http://www.w3.org/Submission/2004/SUBM-CBD-20040930/ 

best wishes,
   -ian

[email protected] (Ian Green1/UK/IBM@IBMGB)
Chief Software Architect, Requirements Definition and Management
IBM Rational




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU 





_______________________________________________
Oslc-Core mailing list
[email protected]
http://open-services.net/mailman/listinfo/oslc-core_open-services.net




Reply via email to