getting rdf xml:attribute in sparql query -
given rdf:
<?xml version="1.0" encoding="utf-8"?> <!doctype rdf:rdf [<!entity rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <!entity rdfs 'http://www.w3.org/2000/01/rdf-schema#'> <!entity xsd 'http://www.w3.org/2001/xmlschema#'>]> <rdf:rdf xmlns:xsd="http://www.w3.org/2001/xmlschema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dnr="http://www.dotnetrdf.org/configuration#" xml:base="http://www.example.org/"> <rdf:description rdf:about="fadi"> <ns:be xmlns:ns="http://example.org/">nice</ns:be> </rdf:description> <rdf:description rdf:about="fadi"> <ns:not xmlns:ns="http://example.org/" xml:starttime="00:00:13" xml:endtime="00:00:16">good</ns:not> </rdf:description> <rdf:description rdf:about="she"> <ns:be xmlns:ns="http://example.org/" xml:starttime="00:00:13" xml:endtime="00:00:16">good</ns:be> </rdf:description> </rdf:rdf>
how can attributes: starttime , endtime, sparql query request?!
you can't, using xml
namespace in way attributes means attributes silently ignored rdf/xml parser don't generate triples.
from rdf/xml specification section 6:
element information items reserved xml names (see name in xml 1.0) not mapped data model element events. these property [prefix] beginning xml (case independent comparison) , [prefix] property having no value , have [local name] beginning xml (case independent comparison).
therefore cannot retrieve data because doesn't exist far rdf/xml system concerned.
Comments
Post a Comment