How to Stringify RDFTriple and BlankNode

Hi,

I have some problems with Stringification.

What would you expect to be the result of the following print statements:

1. var bn = new BlankNode()
   print(bn.toString())

2. subject = new URI("http://www.example.com#foo");
   var triple1 = new RDFTriple(subject, rdfa.rdfs.label, new 
PlainLiteral("a,b c; g"));
   print(triple1.toString());

3. subject = new URI("http://www.example.com#foo");
   var triple1 = new RDFTriple(subject, rdfa.rdfs.label, new 
PlainLiteral("http://www.example.com#foo"));
   print(triple1.toString());

In an early release of the JS Prototype of the RDFa DOM API, I used 
TURTLE syntax in general.
This would solve the problem but seems to be too much RDF in this API.

Benjamin

-- 
__________________________________________
Benjamin Adrian
Email : benjamin.adrian@dfki.de
WWW : http://www.dfki.uni-kl.de/~adrian/
Tel.: +49631 20575 145
__________________________________________
Deutsches Forschungszentrum für Künstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschäftsführung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats:
Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
__________________________________________

Received on Friday, 23 April 2010 09:24:55 UTC