Hi Charles,
On 21 Feb 2006, at 02:29, Charles Nepote wrote:
> I would like to show a given triple on a web page, via an input
> parameter (GET, POST or SESSION).
> For example : http://example.org/?triple=jhfff4sd2qd
>
> What are the ways to do it ? Are there some best pratices for that ?
> Reification ? Graphs ? Hashes ? Is there a built in method in RAP ?...
>
> Note that I wouldn't use a GET with s, p ,o inside (as RAP web
> utils) as there will be limits with big literals...
Then why don't you use the same simple scheme with POST?
Alternatively, I'd consider using GET and supporting a second form of
query with parameters s, p, and o_hash. The first two are like
before, the third one is, say, an MD5 hash of the literal (including
its datatype or language tag). To reconstruct the right object on the
server side, you'd have to do a find(s, p, ANY), calculate the hashes
for each result object, and check if one is equal to the given
o_hash. This should work with existing triple stores (like RAP's DB
model) and should be reasonably fast because no more than a handful
of hashes need to be calculated per request.
All other solutions I can think of would be a lot more work or much
slower.
Richard
>
> Charles Nepote
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Rdfapi-php-interest mailing list
> Rdf...@li...
> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest
>
|