Re: Committed a cleaned version of RDF-API

Hello!

That sounds good.

A question though. Does `set` replace an existing triple with the same
subject and predicate? In most RDF API:s write operations are
primarily `add` and `remove`. Sometimes a `set`, or more explicitly
`replace` exist to do what `set` here is doing.

Also, how does one create a relation -- i.e. give a URI reference as
object? A string that looks like a URI won't do, since string
*literals* (neither a plain nor of type xsd:anyURI) are not the same
as a reference. (That's basic RDF of course, but it might not be
intuitive for a newcomer.)

(The last issue should reasonably be aligned with an eventual addition
of the suggested "getRel(s)/getRev(s)" methods on Projection, with the
difference that a new `addRel` probably should accept as object either
a string representing the URI reference or another Projection.)

(I really should find the time to implement how I think this should
look using Nathan's new rdfi.js...)

Best regards,
Niklas



On Wed, May 11, 2011 at 5:08 PM, Benjamin Adrian
<benjamin.adrian@dfki.de> wrote:
> Hi All
>
> I just committed a cleaned version of the RDF-API [1].
>
> Changelist:
> * moved "How to read .. " from Abstract to Introduction
> * copied and edited query example from RDFa API
> * simplified query method
> * fixed all WebIDL errors [2]
> * renamed document.data to just data
> * added setter method to Projection
>
> A native speaker should review the existing issues on language and
> grammar. Unfortunately, I am still the wrong man for that.
>
> Best regards,
>
> Ben
>
> [1] http://www.w3.org/2010/02/rdfa/sources/rdf-api/
> [2]
> http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fwww.w3.org%2F2010%2F02%2Frdfa%2Fsources%2Frdf-api%2F&input=&output=html
>
>
>
> --
> __________________________________________
> Benjamin Adrian
> Email : benjamin.adrian@dfki.de
> WWW : http://www.dfki.uni-kl.de/~adrian/
> Tel.: +49631 20575 1450
> Twitter: http://twitter.com/BenBanBun
> Skype: benbanbun
> __________________________________________
> 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 Thursday, 12 May 2011 08:53:07 UTC