Hi Adam,
I am not aware of decent support for Trig within TBC. The issue is that
each named graph that can be referenced by TB requires a file in the
workspace. So even if we were to load the quads into a TDB, we'd still
need to add code that produces TDB connector files (.xdb). Or, split it
into multiple TTL files. In the latter case, I guess a 3rd party tool
could be used too.
For the time being, I have filed an internal development ticket
(reference: TBS-2841) to improve on that in the future.
Do you have any work-around in the meantime?
Holger
On 7/04/2020 02:16, Adam Kimball wrote:
Hi all,
Hope this email finds you safe and well during these crazy times.
I have a need to work with some TRIG files. Since I've become so used
to doing my development work in TBC, I'd very much like to find a way
to work with them. Searching this list and the web, I don't get the
feeling that there are many options but I thought it would be worth
asking.
One idea I had is to try and import a TRIG file into a Jena TDB (using
Import->Import RDF Files into new TDB) but this results in an
exception from deep within Jena (see below). This happens with any of
the examples from the TRIG spec. Running on 6.3.0.
I'm curious what other approaches I might want to investigate. My
ultimate goal is running SPARQL queries across the named graphs
defined in the TRIG files.
---
Reason:
java.lang.NullPointerException
at
org.apache.jena.ext.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:882)
at
org.apache.jena.ext.com.google.common.cache.LocalCache.getIfPresent(LocalCache.java:3948)
at
org.apache.jena.ext.com.google.common.cache.LocalCache$LocalManualCache.getIfPresent(LocalCache.java:4859)
at
org.apache.jena.atlas.lib.cache.CacheGuava.containsKey(CacheGuava.java:81)
at
org.apache.jena.atlas.lib.cache.CacheSetImpl.contains(CacheSetImpl.java:72)
at
org.apache.jena.tdb.store.nodetable.NodeTableCache.cacheLookup(NodeTableCache.java:176)
at
org.apache.jena.tdb.store.nodetable.NodeTableCache._idForNode(NodeTableCache.java:141)
at
org.apache.jena.tdb.store.nodetable.NodeTableCache.getAllocateNodeId(NodeTableCache.java:91)
at
org.apache.jena.tdb.store.nodetable.NodeTableWrapper.getAllocateNodeId(NodeTableWrapper.java:40)
at
org.apache.jena.tdb.store.nodetable.NodeTableInline.getAllocateNodeId(NodeTableInline.java:51)
at
org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:85)
at
org.apache.jena.tdb.store.bulkloader.LoaderNodeTupleTable.load(LoaderNodeTupleTable.java:106)
at
org.topbraidcomposer.tdb.wizards.loader.Loader$StreamRDF_TDBLoad.quad(Loader.java:172)
at org.apache.jena.riot.lang.LangTriG.emit(LangTriG.java:266)
at
org.apache.jena.riot.lang.LangTurtleBase.emitTriple(LangTurtleBase.java:486)
at
org.apache.jena.riot.lang.LangTurtleBase.objectList(LangTurtleBase.java:352)
at
org.apache.jena.riot.lang.LangTurtleBase.predicateObjectItem(LangTurtleBase.java:288)
at
org.apache.jena.riot.lang.LangTurtleBase.predicateObjectList(LangTurtleBase.java:269)
at
org.apache.jena.riot.lang.LangTurtleBase.triples(LangTurtleBase.java:250)
at
org.apache.jena.riot.lang.LangTurtleBase.triplesSameSubject(LangTurtleBase.java:191)
at org.apache.jena.riot.lang.LangTriG.bracedGraph(LangTriG.java:213)
at
org.apache.jena.riot.lang.LangTriG.oneNamedGraphBlock2(LangTriG.java:137)
at org.apache.jena.riot.lang.LangTriG.oneTopLevelElement(LangTriG.java:49)
at
org.apache.jena.riot.lang.LangTurtleBase.runParser(LangTurtleBase.java:91)
at org.apache.jena.riot.lang.LangBase.parse(LangBase.java:41)
at
org.apache.jena.riot.RDFParserRegistry$ReaderRIOTLang.read(RDFParserRegistry.java:191)
at org.apache.jena.riot.RDFParser.read(RDFParser.java:352)
at org.apache.jena.riot.RDFParser.parseNotUri(RDFParser.java:342)
at org.apache.jena.riot.RDFParser.parse(RDFParser.java:291)
at org.apache.jena.riot.RDFParserBuilder.parse(RDFParserBuilder.java:506)
at
org.apache.jena.riot.RDFDataMgr.parseFromInputStream(RDFDataMgr.java:870)
at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:693)
at
org.topbraidcomposer.tdb.wizards.loader.Loader.loadFromFiles(Loader.java:107)
at
org.topbraidcomposer.tdb.wizards.loader.TDBLoaderWizard$1.run(TDBLoaderWizard.java:76)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Take care,
Adam
--
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to topbraid-users+unsubscr...@googlegroups.com
<mailto:topbraid-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/2bd9ccac-0c8d-46d6-af30-58efd11e0a9a%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/2bd9ccac-0c8d-46d6-af30-58efd11e0a9a%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "TopBraid
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/3d9e20b6-cf81-c437-5e7b-fcc88a0786fe%40topquadrant.com.