It seems that someone has thought about this before: https://www.w3.org/Submission/rdfsource/
TriX is just not a natural structure for XSLT transformations. On Thu, Jun 9, 2016 at 4:34 PM, Andy Seaborne <a...@apache.org> wrote: > > > On 09/06/16 14:47, Martynas Jusevičius wrote: >> >> Good points. Yes TriG-like structure makes more sense -- but then it >> is clearly non-standard. > > > That's a good thing - no risk of wrong data or missing data. > > Using an attribute, rdfx:graph - won't it be a property if it is not > understood as additional syntax attribute? > >> >> Isn't this a gap in RDF standardization -- an XML format for quads? > > > IIRC When it came down to it, no one was interested in spending time on it. > > There are (probably) some notes in the RDF 1.1 WG wiki. > > TriX is a de facto standard. > > Andy > > >> >> On Thu, Jun 9, 2016 at 1:51 PM, Andy Seaborne <a...@apache.org> wrote: >>> >>> On 08/06/16 15:22, Martynas Jusevičius wrote: >>>> >>>> >>>> Hey, >>>> >>>> would it be possible to adopt RDF/XML writer for quads (Dataset)? What >>>> would that take? >>>> >>>> I know it would involve a non-standard syntax, but if we used >>>> namespaced attributes, XML-compatible tools shouldn't break. >>>> >>>> I am thinking it should be possible to add an attribute (e.g. >>>> rdfx:graph) with graph name on each of the property elements, >>>> something like this: >>>> >>>> <rdf:Description >>>> rdf:about="https://www.w3.org/People/Berners-Lee/card#i"> >>>> <foaf:givenName >>>> >>>> >>>> rdfx:graph="https://www.w3.org/People/Berners-Lee/card">Tim</foaf:givenName> >>>> <foaf:familyName >>>> >>>> >>>> rdfx:graph=http://data.semanticweb.org/person/tim-berners-lee/rdf"">Berners-Lee</foaf:familyName> >>>> </rdf:Description> >>> >>> >>> >>> And if a triple is in 2 graphs? The default graph? >>> >>>> >>>> What do you think? Would someone else be interested in such >>>> serialization? I know there is TriX, but it is not convenient for XSLT >>>> transformation. >>>> >>>> Martynas >>>> atomgraph.com >>>> >>> >>> An alternative is more TriG like : >>> >>> >>> <rdfx:Graph rdfx:name="..."> >>> .... RDF/XML here ... >>> </rdfx:Graph> > >