Hello again!

I just noticed that the PDF I downloaded and printet a couple of weeks ago are 
slightly outdated compared to the HTML docs, and I redownloaded it, and it 
seems they are still out of synch, but I hope these comments are still valid.

First, I noticed a minor thing, it says:
"In the following, the abbreviation owl:sameAs is used for the IRI 
http://www.w3.org/2002/07/owl#same-as . "

but there IRI is wrong, the qname is correct though. I hope this is just a 
documentation bug, that the URI is correct in the code?

My next issue is about how URIs are generated in RDF Views. To create more 
human-understandable URIs, we usually prefer to use e.g. a dumbed down part 
of the title rather than a numeric ID in our URIs. We tend to use ASCII only 
for these names, so that for example an article with title "blåbærsyltetøy" 
would be included as a URI
http://example.org/story/blabersyltetoy

Some old Perl code of mine does basically this:
    $intitle =~ s/\p{TerminalPunctuation}//gs; # Remove terminal punctutation
    idn_prefix('');
    $intitle = unac_string('utf8', $intitle); # Try to translate most
    $intitle = encode_punycode(lc($intitle)); # Punycode the rest if needed
    $intitle =~ s/\s+/-/gs; # All spaces become one -
    $intitle =~ s/[^a-z0-9\-_]//g; # Remove all now not a alphanumeric or -

Then, I also add some numbers in case of a collision.

Now, the problem is of course that all this is irreversible, so given a URI, 
you can't easily reconstruct the ID. So, unless the URI itself is stored, 
this might be among the Harder Problems. 

Still, I was wondering if this could be accommodated for, perhaps in the form 
of a special mapping and a sprintf pattern?

Finally, I felt that the documentation was a bit hard to read at times. In 
particular, I wouldn't think that most SPARQL users would need to understand 
the details of how the quads are stored in the database, which is now the 
first thing you encounter. Perhaps these belong in different chapters or 
documents?

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: kjetil.kjern...@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 
1001


Reply via email to