views:

9

answers:

0

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 of one line of text

2) Such link should be easily parseable both by machine and person

3) Sections of such links should be delimited

4) Such link must be easy to grep, which IMO means they should be wrapped in some distinct letters or characters to make them easy to regex from any web or other document

5) Such link can be used in URL pathnames or query strings, thus has to comply with URL syntax

6) Characters used in such link must not be reserved for URL pathnames, query strings or hashes (e.g. not "/", ";" "?", "#")

My ideas so far were as follows:

a) Start and end such link with some distinct, constant set of letters, e.g. STK_....._OVRFLW

b) Separate sections with dashes "-", e.g. Subject-Predicate-Object

So it would look like:

STK_S1234-P123-O1234_OVRFLW

You have better ideas?