i have triples: Fadi eat Apple. (subject = Fadi, predicate = eat, object = Apple). and i have the Time when fadi eat the Apple, its: 00:00:13 and i have the time when fadi ate the apple, its: 00:00:50
how can i write a rdf-triples file for this with times as attributes? and how can i get the startTime and endTime with sparql query request from the rdf file?
i tried to write my rdf like this:
<?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/"
xmlns:startTime="http://example.org/startTime#"
xmlns:endTime="http://example.org/endTime#">
<rdf:Description rdf:about="Fadi">
<ns:be xmlns:ns="http://example.org/" xmlns:startTime="00:00:13" xmlns:endTime="00:00:16">May</ns:be>
</rdf:Description>
</rdf:RDF>
but the c# gaves me: Invalid URI: The URI scheme is not valid.
and i tried this:
<?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/" xml:startTime="00:00:13" xml:endTime="00:00:16">May</ns:be>
</rdf:Description>
</rdf:RDF>
but i can't get the times with sparql.
how can i write my rdf?!!