Closed MichalWozniakSmartlogic closed 7 years ago
Thanks for making this issue. I made an internal issue (number 38358) that has been fixed. Release 8.0-5 will not require this workaround -- I'll leave this issue in place until that server release is out.
Marklogic Server 8.0-5 was released some time ago. @MichalWozniakSmartlogic maybe you'd like to confirm whether this is now fixed.
Closing this issue as it has been fixed in the 8.0-5 release of MarkLogic. @MichalWozniakSmartlogic if you happen have problems still with language codes do feel free to reopen.
Issue: failing adding and deleting triples to/from Marklogic database with languages in the BCP 47 format. Tested on Marklogic database server 8.0.4.
Background: In order to send triples to the database we use a dedicated method "mergeGraph(String uri, Graph graph)" of class JenaDatabaseClient in the marklogic-jena client. However, adding of such a triple fails:
with the following response from the server (for an analogous triple):
Qconsole: Also, it turns out there is no easy way to add that triple via qconsole. In particular, the following query fails:
with the following message:
Temporary workaround: lead by clues on BCP 47 from documentation about the SPARQLQueryDefinition class we have implemented a workaround to this problem by writing the following function (that makes use of MarkLogicDatasetGraph.bindObject to pass the language code as a binding rather than a triple statement):