[Kim-discussion] Problems adopting KIM
Philip Alexiev
philip.alexiev at sirma.bg
Tue Mar 31 15:48:16 EDT 2009
Hi Anton,
The answers to these questions are very easy to find in the
documentation. I recommend you get familiar with KIM and Sesame
documentation. They can be found at these locations:
KIM documentation: http://www.ontotext.com/kim/doc/sys-doc
Sesame documentation: http://www.openrdf.org/documentation.jsp
Sesame API: http://www.openrdf.org/doc/api/
1. com.ontotext.kim.client.model.FeatureConstants is located in
kim-api.jar
2. this functionality comes with Sesame and you can find information in
the Sesame API
3. again Sesame and in particular
http://www.openrdf.org/doc/api/org/openrdf/model/impl/URIImpl.html#RDFS_LABEL
http://www.openrdf.org/doc/api/org/openrdf/model/URI.html#getURI()
Greetings,
Philip
Anton Andreev wrote:
> Hi,
>
> I trying the code from:
> http://www.ontotext.com/kim/doc/sys-doc/ExploreEntitiesExamples.html
> to get all entities for a document.
> I am trying to rewrite the code from Java to Microsoft .NET using the
> provided webservices.
> I have the following problems:
>
> 1. I do know where FeatureConstants is declared?
> 2. "Resource" is a Java object. This object is used with "BNodeImpl"
> and "URIImpl" and "uriRes.toString() " is called. The problem is that
> I do know these classes and methods work and I do not know in what
> format they return it.
> 3. Same problem with URIImpl.RDFS_LABEL.getURI().
>
> Java code:
> if (kimFeatures != null)
> {
> String resourceUri = (String)
> kimFeatures.get(FeatureConstants.INSTANCE);
> Resource uriRes = null;
> if (resourceUri.startsWith("_")) {
> // anonymous resource
> uriRes = new BNodeImpl(resourceUri);
> } else {
> uriRes = new URIImpl(resourceUri);
> }
> // get the labels of the entities
> SemanticQueryResult properties = apiSesame
> .evaluateSelectSeRQL("select distinct MainLabel "
> + "from {<" + uriRes.toString() + ">} <"
> + URIImpl.RDFS_LABEL.getURI() + ">
> {MainLabel}");
>
> }
>
> I will really appreciate your help!
>
> Thanks,
> Anton
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kim-discussion mailing list
> Kim-discussion at ontotext.com
> http://ontotext.com/mailman/listinfo/kim-discussion
>
More information about the Kim-discussion
mailing list