Archive for the ‘Workshop’ Category

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 . [...]

distutils implemented

Finally, I got the way to implement distutils into Vazaar. It lacks support for i18n/gettext but it is in the way. I’ve released a new tarball. You can launch it as developer inside your home with the command ./launch But if you prefer a wide-system install, you must use the following command: sudo python2.5 setup.py [...]

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 [...]

Querying remote ontologies from integrated SPARQL editor

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. [...]

GUI improvements

After a long weekend coding and trying new design ideas finally I think I got a nice GUI. At least for the StartHere module: There are still too much glitches in the GUI but I’m trying to fix them as I go. But for now, I feel satisfied. Queries against the model are working as [...]