@prefix this: <https://w3id.org/np/RAekqSYOKrvcBt0joDwam5ZBQDNthNv4jAoyGsxGiZsp4> .
@prefix sub: <https://w3id.org/np/RAekqSYOKrvcBt0joDwam5ZBQDNthNv4jAoyGsxGiZsp4/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
sub:Head {
  this: np:hasAssertion sub:assertion ;
    np:hasProvenance sub:provenance ;
    np:hasPublicationInfo sub:pubinfo ;
    a np:Nanopublication .
}
sub:assertion {
  sub:paragraph a <https://w3id.org/kpxl/gen/terms/Paragraph> ;
    <https://schema.org/about> <https://w3id.org/kpxl/grlc/grlc-query> ;
    <https://schema.org/title> "Escaping in multi-value literal columns" ;
    <https://w3id.org/kpxl/gen/terms/hasContent> "<p>When concatenating literal values with a newline separator in <code>group_concat</code>, always escape existing backslashes and newlines in the individual values first: <code>replace(replace(?val, \"\\\\\\\\\" , \"\\\\\\\\\\\\\\\\\"), \"\\\\n\", \"\\\\\\\\n\")</code>. First escape existing backslashes (\\\\ → \\\\\\\\), then escape existing newlines (newline → \\\\n). This ensures values containing these characters can be safely split on newlines later.</p>" ;
    <https://w3id.org/kpxl/gen/terms/hasPositionString> "08" .
}
sub:provenance {
  sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
  orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
  this: dct:created "2026-03-24T09:52:37Z"^^xsd:dateTime ;
    dct:creator orcid:0000-0002-1267-0234 ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> ;
    npx:introduces sub:paragraph ;
    rdfs:label "Escaping in multi-value literal columns" ;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU> ;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw> , <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI> ;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RA6x8_U9oRQeqHp3mGYvDLdLOkD7y-XxCAgzFevplEX4g> .
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" ;
    npx:hasSignature "ClvbVxqMFlyjYkKCcCgfuySwnZzcXFQbf6VOQARjz1JVd60Uc3bazfj+kOtM8hHuo+qRLyWAf1W1LESTGYauKE5M3KWYdhnb47eZI0tMWTZ9ftAcp9H3P7j7L34zO/aM2qzNK7GQcPTKpI9PfUyGpfKqbOgelth7gdKcE0nxat8=" ;
    npx:hasSignatureTarget this: ;
    npx:signedBy orcid:0000-0002-1267-0234 .
}