Supported Formats in Any23 <> supports all the main standard formats introduced by the <> community. * <> The following list shows the accepted input formats and for each one the support level. * <<(X)HTML>> with <>, <>, <> and <>. <> fully supports the {{{http://www.w3.org/TR/html5/}(X)HTML5}} input format and in particular provides a set of extractors for processing embedded {{{http://www.w3.org/TR/rdfa-syntax/}RDFa}} 1.0, RDFa 1.1, {{{http://microformats.org/}Microformats}} and {{{http://www.w3.org/TR/microdata/}http://www.w3.org/TR/microdata/}}. * <> <> fully supports the {{{http://www.w3.org/TeamSubmission/turtle/}Turtle}} specification. * <> <> fully supports the {{{http://www.w3.org/TR/rdf-testcases/#ntriples}N-Triples}} specification. * <> <> fully supports the {{{http://sw.deri.org/2008/07/n-quads/}N-Quads}} specification. * <> <> fully supports the {{{http://www.w3.org/TR/rdf-syntax-grammar/}RDF/XML}} specification. * <> The supported output formats are enlisted below. * <> <> is able to produce output in {{{http://www.w3.org/TeamSubmission/turtle/}Turtle}}. * <> <> is able to produce output in {{{http://www.w3.org/TR/rdf-testcases/#ntriples}N-Triples}}. * <> <> is able to produce output in {{{http://sw.deri.org/2008/07/n-quads/}N-Quads}}. * <> <> is able to produce output in {{{http://www.w3.org/TR/rdf-syntax-grammar/}RDF/XML}}. * <> <> is able to produce output in {{{http://www.json.org/}JSON}} . In particular we choose the format described below. Given the following example statements (expressed in N-Quads format): +------------------------------------------------------------------------------- _:bn1 . "language literal"@en . "123"^^ . +------------------------------------------------------------------------------- these will be represented as: +------------------------------------------------------------------------------- { "quads" : [ [ { "type" : "bnode", "value" : "bn1" }, "http://pred/1", { "type" : "uri", "value" : "http://value/1" }, "http://graph/1" ], [ { "type" : "uri", "value" : "http://sub/2" }, "http://pred/2", { "type" : "literal", "value" : "language literal", "lang" : "en", "datatype" : null }, "http://graph/2" ], [ { "type" : "uri", "value" : "http://sub/3" }, "http://pred/3", { "type" : "literal", "value" : "123", "lang" : null, "datatype" : "http://datatype" }, "http://graph/3" ] ] } +------------------------------------------------------------------------------- The <> structure is described by the following <> rules, where quotes are omitted to improve readability: +----------------------------------------------------------------------------------------------------------------- ::= { "quads" : } ::= [ + ] ::= [ , , , ] ::= { "type" : , "value" : } ::= ::= { "type" : , "value" : , "lang" : , "datatype" : } ::= | null ::= "uri" | "bnode" ::= "uri" | "bnode"| "literal" ::= String ::= String | null ::= | null ::= String +-----------------------------------------------------------------------------------------------------------------