Hi Mehnaz,
Note 1:
======
In your "space.nt" file you use:
<http://proton.semanticweb.org/2005/04/protons#generatedBy>
where you must change it to:
<http://proton.semanticweb.org/2006/05/protons#generatedBy>
Try to use some text editor with flexible text-search and check for "2005/04"
Note 2:
======
The two parameters "imports" and "defaultNS" are positionally matched.
So the first of the imports goes with the first of the default namespaces, etc.
<param name="imports" value=
"kb/owl/owl.rdfs;
kb/owl/protons.owl;
....................................
"/>
<param name="defaultNS" value=
"http://www.w3.org/2002/07/owl#;
http://proton.semanticweb.org/2006/05/protons#;
....................................
"/>
Take care when placing your additions not to scramble the order.
Greetings,
DanKo
----- Original Message -----
From: madn002 madn002
To: DanKo
Cc: [email protected]
Sent: Saturday, September 13, 2008 1:27 PM
Subject: Re: [KIM-discussion] problem in loading instance base
Hi Danko,
Thanks very much for your help but I am still in the first step. Now i am
trying to extend KIM with example in.space ontology and knowledge base. But the
web only annotate date and time entities. It does not annotate any enitity from
inspace.nt.
I dont know what I am missing. I have changed the "/2005/04/" fragments of
the wkb namespace with "/2006/05/". Here are the steps I have done:
1) Copy inspace.owl in \kb\owl
2)Copy inspace.nt in \kb
add these entries in seseme.inmem.config
kb/owl/inspace.owl; << mine
kb/visibility.nt;
kb/inspace.nt; << mine
kb/wkbx.nt;"/>
<param name="defaultNS" value=
"http://www.w3.org/2002/07/owl#;
http://[EMAIL PROTECTED]<�rotons#;
http://proton.semanticweb.org/2006/05/protont#;
http://proton.semanticweb.org/2006/05/protonu#;
http://in.space#; << mine
http://www.ontotext.com/kim/
I have also added the following triple in visibilty.nt
<http://in.space#Robot>
<http://www.ontotext.com/kim/2006/05/kimso#visibilityLevel1> "" .
Please guide me what I am missing?? Also attaching added owl and nt file
Thanks and Regards
Mehnaz
2008/9/12 DanKo <[EMAIL PROTECTED]>
Hi Mehnaz,
==>About the namespace:
These examples are really outdated and are valid for the previous public
KIM release.
So looking at the examples you shoud have in mind to replace the
"/2005/04/" fragments of the namespace with "/2006/05/" to fit the setup of the
last public release.
==>About the "Thrusted" issue:
You must not state directly that the items themselves are "Thrusted".
First you must create a datasource instance which you'll declare "Thrusted":
<http://www.ontotext.com/kim/2006/05/wkb#BioMedicalDataSource>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://proton.semanticweb.org/2006/05/protons#Trusted> .
then you declare your instance to be received from that datasource:
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus>
<http://proton.semanticweb.org/2005/04/protons#generatedBy>
<http://www.ontotext.com/kim/2006/05/wkb#BioMedicalDataSource>.
==>About the large number of disorder names:
I am attaching an XML file with some triple-generating formulas. See if it
can help you.
Other solution is to search in the web if somebody is offering such
ready-made knowledge base.
Greetings
Danko,
senior developer, KIM
----- Original Message -----
From: madn002 madn002
To: DanKo
Cc: [email protected]
Sent: Thursday, September 11, 2008 4:39 AM
Subject: Re: [KIM-discussion] problem in loading instance base
Thanks Danko
I tried again by extending instance base with wkb name space ( last time
i was using my ontology name space) b/c the document you send me mentioned
that all instances should be with the name space
<http://www.ontotext.com/kim/2006/05/wkb. But in the example text " The patient
lives in america and had IDM" only the "america" is recognized not "IDM"
I have a class "Concept" which is the subclass of "Entity" and "Concept"
has a subclass "Disorder" which also subsumes " Trusted".
Like this
Entity
-------Concept
-----------------Disorder
Trusted
----------Disorder
Now my synonymtest.nt file is below:
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://proton.semanticweb.org/2006/05/protons#Trusted> .
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus><http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.semanticweb.org/ontologies/2008/8/synonymtest.owl#Disorder> .
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus>
<http://www.w3.org/2000/01/rdf-schema#label>
"Insulin-dependent_diabetes_melittus" .
<http://www.ontotext.com/kim/2006/05/wkb#IDM><http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://proton.semanticweb.org/2006/05/protons#Alias>
.
<http://www.ontotext.com/kim/2006/05/wkb#IDM><http://www.w3.org/2000/01/rdf-schema#label>
"IDM" .
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus>
<http://proton.semanticweb.org/2005/04/protons#hasAlias>
<http://www.ontotext.com/kim/2006/05/wkb#IDM>.
<http://www.ontotext.com/kim/2006/05/wkb#diabetes_mellitus_type_1><http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://proton.semanticweb.org/2006/05/protons#Alias>
.
<http://www.ontotext.com/kim/2006/05/wkb#IDM><http://www.w3.org/2000/01/rdf-schema#label>
"diabetes_mellitus_type_1" .
<http://www.ontotext.com/kim/2006/05/wkb#Insulin-dependent_diabetes_melittus>
<http://proton.semanticweb.org/2005/04/protons#hasAlias>
<http://www.ontotext.com/kim/2006/05/wkb#diabetes_mellitus_type_1>.
Should i declare all new instances in .nt file "Trusted" as well? Or what
I am missing.
Second question is there to get instances from database into .nt file. I
have a pretty large number of disorder names and thier synonyms which is hard
to put in .nt file manually.
I am attaching my owl file as well.
2008/9/11 DanKo <[EMAIL PROTECTED]>
Hi Mehnaz,
Here is a link where you can find some helpful details&examples for
extending your ontology and instance base:
http://www.mail-archive.com/[email protected]/msg00010.html#wkb
Especially pay attention to the "Source (generatedBy)" paragraph which
is important for later recognition of your new instances.
As to the "Then link an instance of a Concept and its Aliases to a
webpage" - I am not quite sure what linking you have in mind?
Greetings
DanKo
senior developer, KIM
----- Original Message -----
From: madn002 madn002
To: DanKo
Cc: [email protected]
Sent: Wednesday, September 10, 2008 2:55 PM
Subject: Re: [KIM-discussion] problem in loading instance base
Hi Danko,
I have fixed that problem. Actually I was missing NS decleration in
sesame.inif file. Now my onotlogy and instance base are loading but this time
the entitites from my .nt file is not recognised in web Interface. I have this
content in my webpage
"This patient has Insulin-dependent diabetes melittus and now
living in America".
America is recognized(highlighted) but "Insulin-dependent diabetes
melittus" which is is not. I am sending you my ontology and nt file both. I
want to recognize the instances of "Concept" class and thier aliases. Then link
an instance of a Concept and its Aliases to a webpage.
Further I have added my classes in visibilty.nt but it does not show
up in ontology browser in Web interface.
Thanks for your prompt support and help.
Mehnaz
2008/9/10 DanKo <[EMAIL PROTECTED]>
Hi Mehnaz,
Could you please send us the two files you mentioned.
It will be of great help.
Is there any other changes you have made to the basic configuration?
We will try to reproduce your case based on your input.
All the best
DanKo
senior developer, KIM
----- Original Message -----
From: madn002 madn002
To: [email protected]
Sent: Wednesday, September 10, 2008 2:22 AM
Subject: [KIM-discussion] problem in loading instance base
Hi,
I have extended protons ontology ( test.owl) It is in .owl file
with out instances. I have insatnces in "test.nt " ( it is same as test.owl but
with instances and transformed into .nt format). I added my onotolgy in /kb/owl
and test.nt in /kb then put folllowing entries in sesame.inmem.conf
<!-- semicolon should be used as delimiter -->
<param name="imports" value=
"kb/owl/owl.rdfs;
kb/owl/protons.owl;
kb/owl/protont.owl;
kb/owl/protonu.owl;
kb/owl/test.owl; <<my ontology
kb/visibility.nt;
kb/test.nt; <<my instance base I have replaced
wkb.nt with this file b/c i only want to use my instance base.
kb/wkbx.nt;"/>
<param name="defaultNS" va
..................
When i started KIM all ontologies has been processed but after
this console out put is like this:
.. addThisOntology: kb/visibility.nt.....processed for 30ms
.. addThisOntology: kb/test.nt..... processed for ..
It is now safe to close the KIM server.
Unable to construct KIMServiceImpl
.....
Then I again change the line
kb//test.nt;
with
kb/wkb.nt;
But the result is same it does not read the nt file even from
wkb.nt
Please guide me if am doing some thing wrong ??
Thanks and Regards.
Mehnaz
------------------------------------------------------------------
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all
members of this mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
__________ NOD32 3429 (20080909) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this
mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com