[OTDev] RDF size and use of prefixes

Egon Willighagen egon.willighagen at gmail.com
Fri May 20 11:06:12 CEST 2011


Hej Nina,

On Fri, May 20, 2011 at 10:59 AM, Nina Jeliazkova
<jeliazkova.nina at gmail.com> wrote:
> But what I am wondering is why having
>
> @prefix otm:     <http://webservices.in-silico.ch/model> .
>
> doesn't help to have
>
> ot:hasSource otm:124 ;
>
> instead of
>
> ot:hasSource <http://webservices.in-silico.ch/model/124> ;
>
> Any ideas?  The model URI is repeating many times, it will be quite a gain
> if it is prefixed.

Yes, see below.

>> But that a valid QName :(
>>
>> In that respect, it would be good for a future OpenTox API to have the
>> last bit a valid NCName, so starting with a 'a-Z' or '_':
>>
>> http://www.w3.org/TR/REC-xml/#NT-NameStartChar
>
> Hm, does this mean it's actually the numbers that are messing up with the
> RDF prefixes ?

Yes.

> It will be trivial to add an alphabetical first char to any
> of the URIs.

Yes, I think so. I just filed this report for AMBIT:

https://sourceforge.net/tracker/?func=detail&aid=3304986&group_id=191756&atid=938660

Summarizing, it should have worked if the resource would have been:

http://webservices.in-silico.ch/model/m124

allowing:

otm:m124

(Worked for me in ChEMBL-RDF)

Egon

-- 
Dr E.L. Willighagen
Postdoctoral Researcher
Institutet för miljömedicin
Karolinska Institutet (http://ki.se/imm)
Homepage: http://egonw.github.com/
LinkedIn: http://se.linkedin.com/in/egonw
Blog: http://chem-bla-ics.blogspot.com/
PubList: http://www.citeulike.org/user/egonw/tag/papers



More information about the Development mailing list