triples

Creating a triple store query using SQL - how to find all triples that have a common predicate and object

I have a database that acts like a triple store, except that it is just a simple MySQL database. I want to select all triples that have a common predicate and object. Info about RDF and triples I can't seem to work out the SQL. If I had just a single predicate and object to match I would do: select TRIPLE from TRIPLES where PREDICATE...

Creating links to ontology nodes

Let's say that, being abstract from any language, we have some ontology made of triples (e.g. subject (S) - predicate (P) - object (O)) Now if I want to, for some reason, annotate any of these triples (nodes), than I'd like to keep links to them that I can use in web documents. Here are some conditions: 1) Such link must be in a form ...