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 [...]
Tags:
bit floating point,
datatype,
datatypes,
decimal numbers,
duration time,
dynamic,
dynamic query,
entity references,
PIMO,
query,
rdflib,
resource identifier,
schema definition language,
sparql,
sparql query,
time durations No Comments |
Read the rest of this entry »
Checking others parts of the Vazaar GUI, I’ve realized that I can query remote ontologies and vocabularies with a simple SPARQL sentence. In the screenshot you can see how I query for the comments of all NAO entities. Just for the record, it would be nice to save user queries and integrate them within Vazaar. [...]
Tags:
calc,
csv file,
entities,
ontologies,
ontology,
queries,
query,
result data,
screenshot,
sparql,
spreadsheet program,
vocabularies No Comments |
Read the rest of this entry »