It's all about the answers!

Ask a question

Query a workitem in RTCv4.0, foaf:nick


Tomas Broka (122) | asked Aug 06 '12, 12:06 p.m.
retagged Aug 06 '12, 9:14 p.m. by Millard Ellingsworth (2.5k12431)
 Hi,

I'm trying to get foaf:nick in RTC 4.0 via OSLC. In RTC 3.0.1 I'm able to get the desired result but not in RTC 4.0. This is how I set up the name space contexts for the xpath: 

XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
xpath.setNamespaceContext(
new NamespaceContextMap(new String[]
{"oslc", "http://open-services.net/ns/core#",
"rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dcterms", "http://purl.org/dc/terms/",
"foaf", "http://xmlns.com/foaf/0.1/Person",
"rtc_cm", "http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/",
"rtc_ext", "http://jazz.net/xmlns/prod/jazz/rtc/ext/1.0/"}));

Did any syntax change in RTC 4.0 that is preventing me of getting the foaf:nick? Any suggestion of how to get foaf:nick in RTC 4.0 would be very helpful. 

Thank you,

Tomas

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.