Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] handle space when createRDFIndividual

Au Jason jasonforceau at gmail.com
Sun Apr 4 01:47:05 PDT 2010


I understand it is a URI, but I am looking for, if my uri have a
specialcharacter, is there any method can convert it to URI. like
URLEncoder.encode(String) to convert a string to URL, but this time I need a
encoder to output a URI instead of URL.

2010/4/4 Olivier Biot <olivier.biot at gmail.com>

> Yes you can create a class name and use the rdfs:label for conveying
> the human readable text. The class would have an URI fragment like
> "Class_1", that's all.
>
> The URI is required to uniquely identify a resource (class, property,
> instance...). The "rdfs:label" annotation property can be used to
> convey whatever meaning matters to the user of the ontology.
>
> At least that's how I understand it.
>
> Best regards,
>
> Olivier
>
> On Sun, Apr 4, 2010 at 7:40 AM, Au Jason <jasonforceau at gmail.com> wrote:
> > Thank you for the suggest. But in my case its my class name....so I don't
> > think I can replace it by label.
> >
> > Is there a way to handle space/%20 for the class name in
> protege-owl3.4.4??
> >
> > Best Regards,
> > Jason
> >
> > 2010/4/3 Olivier Biot <olivier.biot at gmail.com>
> >>
> >> In one of my ontologies I use the annotation property "rdfs:label" to
> >> convey the human readable text, while the URI fragment is not relevant
> >> to me. You can even configure Protege-OWL to display "rdfs:label"
> >> instead of the URI:
> >> http://protegewiki.stanford.edu/index.php/HidingIdentifiers
> >>
> >> I don't remember the API methods by heart though. Maybe it's setLabel().
> >>
> >> Hope this helps,
> >>
> >> Olivier
> >>
> >> On Sat, Apr 3, 2010 at 10:05 AM, Au Jason <jasonforceau at gmail.com>
> wrote:
> >> > it work ... but .... I am worry that %20 is not the best answer.
> >> >
> >> > as other symbol like !@#$% may not save correctly.
> >> > and if %20 used the name of the individual will be quoted with "". But
> >> > other
> >> > not.
> >> >
> >> > 2010/4/2 Thomas Russ <tar at isi.edu>
> >> >>
> >> >> On Apr 1, 2010, at 7:11 AM, Au Jason wrote:
> >> >>
> >> >>> Please I found a problem with the following code as the individual
> >> >>> finally output as "classname_1"...
> >> >>>
> >> >>> How to solve the space(any other special character like !@$%&*...)
> >> >>> problem when using createRDFIndividual???
> >> >>>
> >> >>> String str_indi = "test test";
> >> >>> RDFIndividual newIndividual =
> >> >>> objectClass.createRDFIndividual(str_indi);
> >> >>
> >> >> I'm not sure, but perhaps the name has to be a legal component of a
> >> >> URL/URI?
> >> >> Does it work if you use "test%20test" instead?
> >> _______________________________________________
> >> protege-owl mailing list
> >> protege-owl at lists.stanford.edu
> >> https://mailman.stanford.edu/mailman/listinfo/protege-owl
> >>
> >> Instructions for unsubscribing:
> >> http://protege.stanford.edu/doc/faq.html#01a.03
> >
> >
> > _______________________________________________
> > protege-owl mailing list
> > protege-owl at lists.stanford.edu
> > https://mailman.stanford.edu/mailman/listinfo/protege-owl
> >
> > Instructions for unsubscribing:
> > http://protege.stanford.edu/doc/faq.html#01a.03
> >
> >
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing:
> http://protege.stanford.edu/doc/faq.html#01a.03
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20100404/bbb1cf8b/attachment.html>


More information about the protege-owl mailing list