Searching strings
Well, another thing I learnt today: how to search a given string in a RDF graph but matching only Literals: def by_term(self, search_term): query = """ SELECT DISTINCT ?rid WHERE { ?rid ?predicate ?object . [...]
Well, another thing I learnt today: how to search a given string in a RDF graph but matching only Literals: def by_term(self, search_term): query = """ SELECT DISTINCT ?rid WHERE { ?rid ?predicate ?object . [...]
Despite of the fact I don’t post in this weblog most often I think I haven’t wasted my spare time (my current work isn’t related with anything about this, yet). Instead it has been very productive and I am very happy with last results. In the end, I’m starting to see something useful. Most of [...]
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 [...]
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. [...]
Bueno, después de casi dos meses, puedo decir que he avanzado un poco más. Para no quemarme, aburrirme o morir en el intento voy alternando entre la programación de la interfaz gráfica y el motor de la aplicación. La parte gráfica de momento es un laboratorio. Me limito a saber leer correctamente los recursos de [...]