Dynamic SPARQL queries and Datatypes
After some headaches I’ve found how to write dynamic SPARQL queries by passing parameters. For example, to query graph about resources collected last hour this code could be a first approach:
#!/usr/bin/env python
# Dynamic query (example code)
from datetime import datetime
import rdflib
from namespaces import XSD
def last_day():
“”" get date “”"
now [...]

