Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-18 Thread Alex To
s > that really represent your data. > > On Wed, Sep 18, 2019 at 8:14 PM Alex To wrote: > > > Update: I switched from Lucene to Elasticsearch 6.4.3 and Kibana. Both > Jena > > and MarkLogic Jena works with indexing, I haven't tried querying > MarkLogic > > with

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-18 Thread Alex To
58 AM Alex To wrote: > Hi Andy > > I ended up creating separate implementation for Jena and MarkLogic full > text search for now due to time constraints of the project. I will > investigate further at a later time. > > Thank you > > Best Regards > > On Sun, Sep 15

Best way to re-index with Jena full text search

2019-09-17 Thread Alex To
Hi everyone I have a question. I want to add a new field for Jena Full Text search using EntityDefinition.set(String field, Node predicate). For e.g. if I want to include ("prefLabel", SKOS.prefLabel) as a new mapping, then obviously I need to re-index existing data because I think Jena creates i

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-16 Thread Alex To
; transaction for each triple added. > > Andy > > On 13/09/2019 23:04, Andy Seaborne wrote: > > The maven central artifact com.marklogic:marklogic-jena is 3.0.6 but our > > code depends on 3.1.0 - what code is it using? > > > > On 13/09/2019 01:18, Alex To wr

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-13 Thread Alex To
what code is it using? > > On 13/09/2019 01:18, Alex To wrote: > > I created a small program to try out Lucene with MarkLogic Jena here > > > > > https://github.com/AlexTo/jena-lab/blob/master/src/main/java/com/company/MainMarkLogic.java > > > > > > My

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-12 Thread Alex To
ciency. Both those systems have their own built-in text > >> indexing which execute as part of the native query engine. This may be a > >> factor for you, it may not. > >> > >> Let us know how you get on trying it. > >> > >> > >>

Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-11 Thread Alex To
Hi I have so far been happy with Jena + Lucene / Elastic. Just trying to get a quick answer whether it can work with other Jena based API like Virtuoso / MarkLogic. If I wrap a MarkLogic Dataset in a Jena TextDataset, can it work as expected ? Given that a MarkLogic / Virtuoso Dataset implements

Re: How to use ontModel.listHierarchyRootClasses() properly

2019-09-06 Thread Alex To
FILTER ( ( ?super NOT IN (rdfs:Resource, > owl:Thing, rdfs:Class) ) && ( ?s != ?super ) )|| > || }|| > || }| > > > On 06.09.19 03:47, Alex To wrote: > > Thanks Lorenz > > > > I figured out the union thing too so I ended up using the

Re: Jena Lucene full text search return no results

2019-09-05 Thread Alex To
I figured it out, I need to include GRAPH ?g in the query Thanks On Fri, Sep 6, 2019 at 2:08 PM Alex To wrote: > > Hi > > I created a Jena Lucene index with this configuration > > var entDef = new EntityDefinition( > "uri", > "label

Jena Lucene full text search return no results

2019-09-05 Thread Alex To
Hi I created a Jena Lucene index with this configuration var entDef = new EntityDefinition( "uri", "label", "graph", RDFS.label.asNode()); entDef.setLangField("lang"); entDef.setUidField("uid"); Then I loaded schema.org ontology and queried using Lucene API directly on

Re: How to use ontModel.listHierarchyRootClasses() properly

2019-09-05 Thread Alex To
.listSuperClasses(OntClassImpl.java:180)|| > ||at > > org.apache.jena.ontology.impl.OntClassImpl.isHierarchyRoot(OntClassImpl.java:739)|| > ||at > > org.apache.jena.util.iterator.FilterIterator.hasNext(FilterIterator.java:56)|| > ||at > > org.apache.jen

How to use ontModel.listHierarchyRootClasses() properly

2019-09-04 Thread Alex To
archyRootClasses(); while (topClazzez.hasNext()) { OntClass clazz = topClazzez.next(); System.out.println(clazz.getURI()); } A minimal Maven project ready to run to demonstrate my problem is here https://github.com/AlexTo/jena-lab (have a look at the Main.java) Thanks a lot -- Alex To PhD Cand

Re: CSV to rdf

2019-02-18 Thread Alex To
> > > Do you have any suggestion about tools or XSLT that can transform > CSV to > > RDF > > > > Thank you in advance, > > Elio HBEICH > > > > > -- > Conal Tuohy > http://conaltuohy.com/ > @conal_tuohy &g

Re: Loosely converting JSON/XML to RDF

2018-11-07 Thread Alex To
denormalized, you can also convert that to JSON and repeat > the same process as above. > > Christopher Johnson > Scientific Associate > Universitätsbibliothek Leipzig > > [1] https://json-ld.org/spec/latest/json-ld-api/#object-to-rdf-conversion > > On Mon, 5 Nov 2018 a

Re: Loosely converting JSON/XML to RDF

2018-11-04 Thread Alex To
We have web services returning XML and JSON in our environment. We use https://github.com/RMLio/rmlmapper-java to map XML/JSON to RDF with satisfied results. Or course you need a valid URI for your XML or Json elements for e.g. in our XML, if we have ... then we use RML to map it to http://ourdom

Re: Inference

2018-10-30 Thread Alex To
Morales wrote: > Let's say I have a node of type schema:Book and one of type > schema:VideoGame. In the Schema vocabulary, both are subclasses of > schema:CreativeWork. > Can somebody please give me a hint how to query Fuseki for > schema:CreativeWork in order to retrieve both

Getting URI of the ontology from ontology model

2018-07-30 Thread Alex To
/rdf-schema#"; How do I get the URI of the ontology regardless of the URL where the ontology is resolved from? Do I need to query the imported model for the tripple "?s a owl:Ontology" to find out or Jena has some built-in function for this? Thank you Best Regards -- Alex To PhD