Triples are written to a context by using the Tupelo operator TripleWriter. Simply create a time-annotated resource by wrapping a regular resource with an annotation and then compose a triple using such resource. Any of the subject, predicate or object of the triple can be time-annotated resorces, but only URI references can be annotated. The following code show one way of inserting triples.
The triples to insert are
Code Block |
---|
<urn:ChampaignWeather>["2009-09-07-06:00"] <urn:hasMaxTemperature> "77" . <urn:ChampaignWeather>["2009-09-08-06:00"] <urn:hasMaxTemperature> "78" . |
...