From erwin at optinity.com Thu May 27 08:16:46 2010 From: erwin at optinity.com (Erwin Karbasi) Date: Thu, 27 May 2010 15:16:46 +0300 Subject: [Kim-discussion] Open Source Semantic Web Project, input SPARQL, output Graph In-Reply-To: References: Message-ID: Hi All, I am looking for an open source (java is preferred) semantic web project/system which it's input is SPARQL and its output is a triple RDF format grid & graph, like this site: http://linkedlifedata.com Any help would be appreciated Cheers Erwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From borislav.popov at ontotext.com Thu May 27 09:39:47 2010 From: borislav.popov at ontotext.com (borislav popov) Date: Thu, 27 May 2010 16:39:47 +0300 Subject: [Kim-discussion] Open Source Semantic Web Project, input SPARQL, output Graph In-Reply-To: References: Message-ID: <2205A823-5115-4F9C-9E30-C028BCD59873@ontotext.com> Hi Erwin, please explain more - about domain and so on. linkedlifedata is built on top of owlim which comes in two breeds, a free and a payed one. on top of it there is a customized RDF browser we developed in house, called FOREST. i'll let barry, rostislav and vassil - some of the key people behind owlim, forest and linkedlifedata provide some more info all the best borislav On May 27, 2010, at 3:16 PM, Erwin Karbasi wrote: > Hi All, > > I am looking for an open source (java is preferred) semantic web > project/system which it's input is SPARQL and its output is a triple > RDF format grid & graph, like this site: http://linkedlifedata.com > > Any help would be appreciated > > Cheers > > Erwin > > > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: From madn002 at aucklanduni.ac.nz Fri May 28 00:07:27 2010 From: madn002 at aucklanduni.ac.nz (Mehnaz Adnan) Date: Fri, 28 May 2010 16:07:27 +1200 Subject: [Kim-discussion] getting sorted annotations by id Message-ID: Hi, It is more like a java question than KIM, but would be grateful if anyone can help. I am annotating a string using KIM API using the code snippet below. It is creating the annotations and features but I want the annotations to sorted by 'id' or 'start'. Is there a easy way to get the KIMAnnotation in sorted order? apiSemAnn.execute(kdocFromText); KIMAnnotationSet kimASet = kdocFromText.getAnnotations(); Set typesSet = kimASet.getAllTypes(); Iterator iterator = typesSet.iterator(); *while* (iterator.hasNext()){ Object key = iterator.next(); KIMAnnotationSet kimFilteredASet = kimASet.get(String.*valueOf*(key)); Iterator annIterator = kimFilteredASet.iterator(); System.*out*.println("Annotations of type ["+String.*valueOf*(key) + "] :"); *while* (annIterator.hasNext()){ KIMAnnotation kimAnnotation = (KIMAnnotation)annIterator.next(); System.*out*.println(kimAnnotation.toString()); } } Thanks -- Mehnaz -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.alexiev at ontotext.com Fri May 28 05:06:16 2010 From: philip.alexiev at ontotext.com (Philip Alexiev) Date: Fri, 28 May 2010 12:06:16 +0300 Subject: [Kim-discussion] getting sorted annotations by id In-Reply-To: References: Message-ID: <4BFF8788.309@ontotext.com> Hi Mehnaz, This should do the job: List annotations = new ArrayList(kimFilteredASet); Collections.sort(annotations, new Comparator() { public int compare(KIMAnnotation o1, KIMAnnotation o2) { if (o1.getStartOffset() > o2.getEndOffset()) return 1; else if (o1.getStartOffset() < o2.getEndOffset()) return -1; else return 0; // or just: // return o1.getStartOffset() - o2.getStartOffset(); } }); Greetings, Philip On 05/28/2010 07:07 AM, Mehnaz Adnan wrote: > Hi, > It is more like a java question than KIM, but would be grateful if > anyone can help. > I am annotating a string using KIM API using the code snippet below. > It is creating the annotations and features but I want the annotations > to sorted by 'id' or 'start'. Is there a easy way to get the > KIMAnnotation in sorted order? > > apiSemAnn.execute(kdocFromText); > > KIMAnnotationSet kimASet = kdocFromText.getAnnotations(); > > Set typesSet = kimASet.getAllTypes(); > > Iterator iterator = typesSet.iterator(); > > *while* (iterator.hasNext()){ > > Object key = iterator.next(); > > KIMAnnotationSet kimFilteredASet = kimASet.get(String./valueOf/(key)); > > Iterator annIterator = kimFilteredASet.iterator(); > > System./out/.println("Annotations of type ["+String./valueOf/(key) + > "] :"); > > *while* (annIterator.hasNext()){ > > KIMAnnotation kimAnnotation = (KIMAnnotation)annIterator.next(); > > System./out/.println(kimAnnotation.toString()); > > } > > } > > > Thanks > -- > Mehnaz > > > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion > -- Philip Alexiev Software Engineer Ontotext AD -------------- next part -------------- An HTML attachment was scrubbed... URL: