Unexpected error handling (drop dot in stOTTR statements?)
Tested with WebLutra ...
Expanding the instance ex:A(ex:a, ex:b) .
with the template
ex:A [ottr:IRI ?a, ?b] :: {
ottr:Triple(?a, rdf:type, ?b)
} .
give the expected output:
@prefix ex: <http://example.com/ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
ex:a a ex:b .
### 2020-04-08T10:36:12.393Z
Removing the last dot in the template, i.e.,
ex:A [ottr:IRI ?a, ?b] :: {
ottr:Triple(?a, rdf:type, ?b)
}
gives the following output:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://example.com/ns#a>
a <http://example.com/ns#b> .
[ERROR] Attempts of parsing library on all available formats [wottr, stottr, legacy] failed with following errors:
[ERROR] Attempt of parsing templates as wottr format failed:
[ERROR] Unable to parse model /uio/kant/ifi-diverse-u00/semantic/sw/tomcat6/temp/weblutra-library-5211791990710415281/5296161020985907073.txt: [line: 12, col: 7 ] Not a valid token for an RDF term: [LBRACKET]
[ERROR] Attempt of parsing templates as legacy format failed:
[ERROR] Unable to parse model /uio/kant/ifi-diverse-u00/semantic/sw/tomcat6/temp/weblutra-library-5211791990710415281/5296161020985907073.txt: [line: 12, col: 7 ] Not a valid token for an RDF term: [LBRACKET]
[ERROR] Attempt of parsing templates as stottr format failed:
[ERROR] Parsing stOTTR
[ERROR] Syntax error at line 14 col 1: missing '.' at '<EOF>'
>>> at [1: 1] (java.util.HashMap) {}
### 2020-04-08T10:37:18.991Z
Even though the template does parse, The instance is correctly expanded, without the prefix ex:
, . Also the last error message >>> at [1: 1] (java.util.HashMap) {}
is not helpful.