Getting URI of the ontology from ontology model

2018-07-31 Thread Alex To
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 Candidate School of Inf

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 types

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

Re: Loosely converting JSON/XML to RDF

2018-11-07 Thread Alex To
malized, 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 at 08:

Re: CSV to rdf

2019-02-18 Thread Alex To
gt; 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 > +61-466-

Re: How to use ontModel.listHierarchyRootClasses() properly

2019-09-05 Thread Alex To
tClassImpl.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.jena.util.iterator.Wrap

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

How to use ontModel.listHierarchyRootClasses() properly

2019-09-04 Thread Alex To
lasses(); 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 Candidate Sch

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

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

2019-09-13 Thread Alex To
0 - 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-16 Thread Alex To
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, 2019 at 6:53 PM Andy Seaborne wrote: > Alex, > > I can't t

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

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

2019-09-18 Thread Alex To
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, 201

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

2019-09-12 Thread Alex To
ystems 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. > >> > >> > >> > >> There

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

2019-09-18 Thread Alex To
ets > 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 text:quer

Performance/optimization of minus queries

2012-06-11 Thread Alex Hall
. ?s ?p ?o}: 62,000 {?s rdf:type ?d}: 37,000 {?p rdfs:domain ?d . ?s ?p ?o} MINUS { ?s rdf:type ?d }: 39,000 Thanks, Alex

Re: Want to run SPARQL Query with Hadoop Map Reduce Framework

2012-06-26 Thread Alex Miller
federation via SERVICE extension might be sufficient and that is also supported. http://www.revelytix.com/content/download-spinner Alex Miller

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
Generally there is a web services on each machine that passes the requests to tdb. We are using TDBFactory.createModel(shared_files_dir_location) to open a model. All the manipulations are done with model object. Yes, I know that this is a bad idea :-) We are working on this. Alex

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
There is an external lock mechanism we use to prevent concurrent write. There are simply no write requests that we allow to process in the same time. Alex -Original Message- From: Marco Neumann [mailto:marco.neum...@gmail.com] Sent: Sunday, March 10, 2013 16:01 To: users

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
I'm not sure I understand the question. The server sides on both machines are always on - the model is created/opened once when the server side is started. The http requests are processed separately - there is no session stored for http connection. Alex -Original Message- From: Marco

RE: Two tdb instances using same data files

2013-03-10 Thread Alex Shapiro
It keeps the reference to model in memory. Alex -Original Message- From: Marco Neumann [mailto:marco.neum...@gmail.com] Sent: Sunday, March 10, 2013 18:25 To: users@jena.apache.org Subject: Re: Two tdb instances using same data files does the app terminate after each connection or do

RE: Two tdb instances using same data files

2013-03-11 Thread Alex Shapiro
and can notify second JVM about the change - will it help to close the model in second JVM and reopen it or reset the model somehow to get the changes made in first JVM? Alex -Original Message- From: Andy Seaborne [mailto:andy.seaborne.apa...@gmail.com] On Behalf Of Andy Seaborne Sent

Jena TDB with Java x64

2013-04-18 Thread Alex Shapiro
Hello, Everything I've read about jena working in x64 environment tells that it should work faster than on x86. But somehow when we migrated our system form x86 to x64 (Java 6 update 14, both 32 and 64 bit versions) we encountered a slowdown in jena's performance - it works about 3 times slower

Integrating D2R Update with Fuseki Server

2013-07-05 Thread Alex Lee
configurations, or is direct modification and re-compilation of the code necessary? Thanks, -- Alex

Re[2]: Problem with getting jena jar filies.

2015-07-04 Thread Alex Sviridov
and module. I got the output that jar was copied but in local maven repo I had only pom. Суббота, 4 июля 2015, 21:00 +01:00 от Andy Seaborne a...@apache.org: On 04/07/15 20:40, Alex Sviridov wrote: Thank you for you answer. But if I add typePOM/type then the necessary classes are not found

Re[2]: Problem with getting jena jar filies.

2015-07-04 Thread Alex Sviridov
:21 +01:00 от Andy Seaborne a...@apache.org: On 04/07/15 13:15, Alex Sviridov wrote: I can't get apache-jena-osgi jar. I tried central repo dependency groupIdorg.apache.jena/groupId artifactIdapache-jena-osgi/artifactId version2.13.0/version /dependency but constanly get

Re[2]: Problem with getting jena jar filies.

2015-07-04 Thread Alex Sviridov
Thank you for your time. Суббота, 4 июля 2015, 21:25 +01:00 от Andy Seaborne a...@apache.org: On 04/07/15 21:18, Alex Sviridov wrote: Thank you very much. I added the aoache snapshot repository and I got the jar file. Can you answer the following questions: Please add

Problem with getting jena jar filies.

2015-07-04 Thread Alex Sviridov
can I get jena-osgi.jar? I have never had such strange problem with getting jar file. -- Alex Sviridov

Re: Upgrade to Jena 3.1.0 breaks the query

2016-06-21 Thread Alex Shkop
Thank, Andy. The workaround fixed the problem in my environment. Alex On 21.06.16 14:01, Andy Seaborne wrote: Alex, Thanks - the key point here is TDB - it follows a slightly different path through the code. https://issues.apache.org/jira/browse/JENA-1198 The best workaround for Fuseki I

Re: Upgrade to Jena 3.1.0 breaks the query

2016-06-21 Thread Alex Shkop
:tdb_dataset_readwrite ; fuseki:name "test" ; fuseki:serviceQuery "query" , "sparql" ; fuseki:serviceReadGraphStore "get" ; fuseki:serviceReadWriteGraphStore "data"

Re-using Lucene index

2017-09-27 Thread Alex Vasinca
base, TextIndex textIndex) method but this method triggers the indexing if we stop the app and the start it again. I hope you can understand the use case I’m targeting from the above explanation. Cheers, Alex Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Wind