Help for ontology creation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help for ontology creation

Justin Martin
Hi,

I am using protege to create owl.

I am able to create following preliminary owl.

-----------------------------------------------
<?xml version="1.0" encoding="WINDOWS-1252"?>
<rdf:RDF  xmlns:owl       = "http://www.w3.org/2002/07/owl#"


<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://localhost/services/process.owl"/>
</owl:Ontology>

<process:AtomicProcess rdf:ID="MY_PROCESS">
<service:describes rdf:resource="#......."/>
<process:hasInput  rdf:resource="#User_Name"/>
</process:AtomicProcess>

<process:Input rdf:ID="User_Name">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/services/myService.owl#UName</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

</rdf:RDF>
------------------------------------------------

However, I need to generate same owl programmatically. Can you kindly quote some code for generating above ontology using mindswap API.

Thanks

~Justin M.

_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Help for ontology creation

Lorenz Buehmann
I'd suggest to use the OWL API, which is also used by Protege.

On 16.03.2016 14:54, Justin Martin wrote:
Hi,

I am using protege to create owl.

I am able to create following preliminary owl.

-----------------------------------------------
<?xml version="1.0" encoding="WINDOWS-1252"?>
<rdf:RDF  xmlns:owl       = "http://www.w3.org/2002/07/owl#"

xml:base        = "http://127.0.0.1/services/myService.owl">

<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://localhost/services/process.owl"/>
</owl:Ontology>

<process:AtomicProcess rdf:ID="MY_PROCESS">
<service:describes rdf:resource="#......."/>
<process:hasInput  rdf:resource="#User_Name"/>
</process:AtomicProcess>

<process:Input rdf:ID="User_Name">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/services/myService.owl#UName</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

</rdf:RDF>
------------------------------------------------

However, I need to generate same owl programmatically. Can you kindly quote some code for generating above ontology using mindswap API.

Thanks

~Justin M.


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


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Help for ontology creation

Justin Martin
In reply to this post by Justin Martin
ok,
Thanks lorenz, I will look into owlapi.
Any particular text you will suggest to look into.


~ Justin M

On Wed, Mar 16, 2016 at 7:24 PM, Justin Martin <[hidden email]> wrote:
Hi,

I am using protege to create owl.

I am able to create following preliminary owl.

-----------------------------------------------
<?xml version="1.0" encoding="WINDOWS-1252"?>
<rdf:RDF  xmlns:owl       = "http://www.w3.org/2002/07/owl#"


<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://localhost/services/process.owl"/>
</owl:Ontology>

<process:AtomicProcess rdf:ID="MY_PROCESS">
<service:describes rdf:resource="#......."/>
<process:hasInput  rdf:resource="#User_Name"/>
</process:AtomicProcess>

<process:Input rdf:ID="User_Name">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/services/myService.owl#UName</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

</rdf:RDF>
------------------------------------------------

However, I need to generate same owl programmatically. Can you kindly quote some code for generating above ontology using mindswap API.

Thanks

~Justin M.


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