German-BioImaging / omero-rdf

A plugin for exporting RDF from OMERO
GNU General Public License v2.0
5 stars 5 forks source link

Escape n3 triples to deal with multiline issues #24

Open joshmoore opened 2 months ago

joshmoore commented 2 months ago

@andrawaag has been running into issues with various parsers due to the newlines in literals:

http://www.openmicroscopy.org/rdf/2016-06/ome_core/Value      """<SegmentDefinition>
          <Name>example</Name>
          ...
        </SegmentDefinition>""" .

Based on:

<http://www.openmicroscopy.org/rdf/2016-06/ome_core/Value>      """<ChannelThresholds>\n          <RoiName>012</RoiName>\n 

If this is not sufficient, then we may need to create a Graph object very frequently and use the .serialize() method.