OSLC: Correct usage/handling of RDF/XML with Javascript?
Hello,
I use Javascript to get Workitems and Artefacts with the help of OSLC. The Javascript Program is running in DNG Webinterface and is not a NodeJS App.
Questions:
* Currently I handle the RDF/XML presentation of a Workitem like normal XML...but in this case I lose the semantic. Are there other ways?
* Is someone using RDF Javascript libraries like rdfstore.js or rdfquery?
* The Namespaces inside RDF/XML make some problems with the XML handling (especially with JQuery), has someone a good solution for this?
BTW, I saw the Javascript Implementation from Steve Speicher but this is NodeJS related
Thx in advance
Steve
I use Javascript to get Workitems and Artefacts with the help of OSLC. The Javascript Program is running in DNG Webinterface and is not a NodeJS App.
Questions:
* Currently I handle the RDF/XML presentation of a Workitem like normal XML...but in this case I lose the semantic. Are there other ways?
* Is someone using RDF Javascript libraries like rdfstore.js or rdfquery?
* The Namespaces inside RDF/XML make some problems with the XML handling (especially with JQuery), has someone a good solution for this?
BTW, I saw the Javascript Implementation from Steve Speicher but this is NodeJS related
Thx in advance
Steve
One answer
Hi Donald,
thanks for the valuable hints. You are right...I was mixing OSLC and Reporting/Query REST API regarding the XML (or JSON) presentation features.
BTW, there is one bug in JQuery (Ticket #11166) when you append elements to RDF/XML: JQuery convert all element and attribute names to lowercase. Because in OSLC we use "Camelcase" like "oslc_rm:trackedBy" you will run in troubles that are hard to find, i.e. I append new links to DNG Artefacts and it doesn't work. Interesting you get "200 OK" back when you use "PUT" to update the DNG Artefact. Still have no solution for this (except string.replace).
Thx
Steve
thanks for the valuable hints. You are right...I was mixing OSLC and Reporting/Query REST API regarding the XML (or JSON) presentation features.
BTW, there is one bug in JQuery (Ticket #11166) when you append elements to RDF/XML: JQuery convert all element and attribute names to lowercase. Because in OSLC we use "Camelcase" like "oslc_rm:trackedBy" you will run in troubles that are hard to find, i.e. I append new links to DNG Artefacts and it doesn't work. Interesting you get "200 OK" back when you use "PUT" to update the DNG Artefact. Still have no solution for this (except string.replace).
Thx
Steve
Comments
Donald Nong
Jan 19 '15, 7:39 p.m.Stefan Hufnagl
Jan 22 '15, 7:41 p.m.Donald Nong
Jan 22 '15, 7:45 p.m.Stefan Hufnagl
Jan 25 '15, 8:40 a.m.