ge-semtk / semtk

Drag and drop SPARQL queries and data ingestion for virtuoso and soon other SPARQL endpoints
http://semtk.research.ge.com
Other
37 stars 6 forks source link

Some turtle doesn't load #464

Closed cuddihyge closed 1 year ago

cuddihyge commented 1 year ago
<uri://semtk#03e7e60c-7ac6-4f02-8186-55937ccaa2e8> <http://arcos.rack/PROV-S#dataInsertedBy> <uri://semtk#fa4280ba-200d-4966-aea2-02121d30e2db> .
<uri://semtk#03e7e60c-7ac6-4f02-8186-55937ccaa2e8> <http://arcos.certgate/LM#gid> "f1a48655-73f4-4dda-be34-eb5ddfbbcd97 " .
<uri://semtk#03e7e60c-7ac6-4f02-8186-55937ccaa2e8> <http://arcos.certgate/LM#uuid> "62daa8b9-92a1-4f15-923d-4d264d9c41f8 " .

Doesn't seem to load as valid turtle through semtk. It does however load via the :3030 "Add Data"

cuddihyge commented 1 year ago

Bonus question: can we stream through javascript instead of reading in the whole file.

weisenje commented 1 year ago

Confirmed can successfully load TTL file with 3 triples above via Fuseki UI :3030 "Add Data". When loading the same file via SPARQLgraph, the error is: image

cuddihyge commented 1 year ago

Confirmed that we can not load sparqlGraphLibrary src/test/resources/musicTestDataset_2017.q2.ttl via the python client.

Suggest we try to straighten this out starting with:

  1. junit test in java
  2. semtk3-python test
weisenje commented 1 year ago

The primary error was: [line: 1, col: 1 ] Content is not allowed in prolog. Fixed in couple different places to send Fuseki a filename with a ttl extension (which it needs to recognize the file as valid). Also added various client functions and JUnit tests.

Can now successfully upload TTL files from Java client, Python client, and SPARQLgraph.