You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Jon (Jira)" <ji...@apache.org> on 2021/04/10 00:53:00 UTC
[jira] [Created] (JENA-2085) Error in documentation of RDF Thrift
Format
Jon created JENA-2085:
-------------------------
Summary: Error in documentation of RDF Thrift Format
Key: JENA-2085
URL: https://issues.apache.org/jira/browse/JENA-2085
Project: Apache Jena
Issue Type: Bug
Components: Documentation
Affects Versions: Jena 4.0.0
Reporter: Jon
Both [https://jena.apache.org/documentation/io/rdf-binary.html]
and the page that it links to [https://afs.github.io/rdf-thrift/rdf-binary-thrift.html]
define RDF literals as:
{code:java}
struct RDF_Literal {
1: required string lex
2: optional string datatype
3: optional string langtag
} {code}
however the definition in the codebase appears to be:
[https://github.com/apache/jena/blob/9519c65f8f5c377d3d9a3983eaaceeb26a99554c/jena-arq/Grammar/RDF-Thrift/BinaryRDF.thrift#L48-L53]
{code:java}
struct RDF_Literal {
1: required string lex ;
2: optional string langtag ;
3: optional string datatype ; // Either 3 or 4 but UNION is heavy.
4: optional RDF_PrefixName dtPrefix ; // datatype as prefix name
} {code}
with langtag and datatype swapped, etc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)