Cleaning text before creating Concept or Inidividual

4 messages Options
Embed this post
Permalink
Nick Khamis

Cleaning text before creating Concept or Inidividual

Reply Threaded More More options
Print post
Permalink
Hello Everyone,

1) Is there a method in the Protegex OWL-API that cleans the text normalizing it to a format that will play nice when creating individuals or concepts etc... avoiding rudimentary methods that look something like something like this:

protected static String ConvertAsciiToText(String pValue)
    {
        if (pValue != null)
        {
    pValue = pValue.replace("@", "-");
    pValue = pValue.replace("!", " ");
    pValue = pValue.replace("$", "-");
    pValue = pValue.replace("%", " Percent ");
    pValue = pValue.replace("(","-");
    pValue = pValue.replace(")","-");
    pValue = pValue.replace("*", "-");
    pValue = pValue.replace("<","-");
    pValue = pValue.replace(">", "-");
    pValue = pValue.replace("@", "-at-");
    pValue = pValue.replace("^", "_");
    pValue = pValue.replace("`", " ");
.....


2) When I create a taxonomy of Concepts or Properties for example Class B subsumed by Class A using the ontology editor, protege automatically create the taxonomic classification without any reasoning services being applied. I am assuming that in the background the OWLIM or some simple classification and consistency reasoner is being invoked. Again is that a method in the protegex OWL-API that will alow me to do this with our application.

3) I am looking for the latest up-to date protegex OWL-API programmer's documentation that show nice examples using the API to build, query and store the owl-dl ontologies. I am aware of the Javadoc, and also http://protege.stanford.edu/plugins/owl/api/guide.html. Other resources would be nice.


Thanks in Advanced,
Ninus.

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Thomas Russ

Re: Cleaning text before creating Concept or Inidividual

Reply Threaded More More options
Print post
Permalink

On Jun 28, 2009, at 5:27 PM, Nick Khamis wrote:

> 2) When I create a taxonomy of Concepts or Properties for example  
> Class B subsumed by Class A using the ontology editor, protege  
> automatically create the taxonomic classification without any  
> reasoning services being applied.

Correct.  No reasoning is required because there is a direct assertion  
of the rdfs:subClassOf or rdfs:subPropertyOf relationships.

> I am assuming that in the background the OWLIM or some simple  
> classification and consistency reasoner is being invoked. Again is  
> that a method in the protegex OWL-API that will alow me to do this  
> with our application.

Perhaps RDFSClass.addSuperclass



_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Nick Khamis

Re: Cleaning text before creating Concept or Inidividual

Reply Threaded More More options
Print post
Permalink
Is there any ideas in regards to:

1) Is there a method in the Protegex OWL-API that cleans the text normalizing it to a format that will play nice when creating individuals or concepts etc... avoiding rudimentary methods that look something like something like this:

protected static String ConvertAsciiToText(String pValue)
    {
        if (pValue != null)
        {
    pValue = pValue.replace("&#64;", "-");
    pValue = pValue.replace("!", " ");
    pValue = pValue.replace("$", "-");
    pValue = pValue.replace("%", " Percent ");
    pValue = pValue.replace("(","-");
    pValue = pValue.replace(")","-");
    pValue = pValue.replace("*", "-");
    pValue = pValue.replace("<","-");
    pValue = pValue.replace(">", "-");
    pValue = pValue.replace("@", "-at-");
    pValue = pValue.replace("^", "_");
    pValue = pValue.replace("`", " ");

On Mon, Jun 29, 2009 at 12:40 PM, Thomas Russ <[hidden email]> wrote:

On Jun 28, 2009, at 5:27 PM, Nick Khamis wrote:

> 2) When I create a taxonomy of Concepts or Properties for example
> Class B subsumed by Class A using the ontology editor, protege
> automatically create the taxonomic classification without any
> reasoning services being applied.

Correct.  No reasoning is required because there is a direct assertion
of the rdfs:subClassOf or rdfs:subPropertyOf relationships.

> I am assuming that in the background the OWLIM or some simple
> classification and consistency reasoner is being invoked. Again is
> that a method in the protegex OWL-API that will alow me to do this
> with our application.

Perhaps RDFSClass.addSuperclass



_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03


_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Nick Khamis

Re: Cleaning text before creating Concept or Inidividual

Reply Threaded More More options
Print post
Permalink
Thanks in Advanced!

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03