one way to handle uris in bko

Pretty much all semantic web work is obsessed with URI's. Me, not so much. I think they are ugly, and there are possibly better ways to handle it. eg, for a given context, give a source URL, and in that page define the URI's. Anyway, today one way to auto-generate URI's in BKO:
-- load some data:
sa: load fred-sam-friends.sw

-- define our URI operators:
-- first, the op URI operator:
sa: URI |op: *> #=> merge-labels(|URI: http://example.com/example-operator-ontology#> + extract-value |_self>)
-- the general URI operator:
sa: URI |*> #=> merge-labels(|URI: http://example.com/example-ontology#> + |_self>)
Now, see what we have:
sa: URI |op: friends>
|URI: http://example.com/example-operator-ontology#friends>

sa: URI |Fred>
|URI: http://example.com/example-ontology#Fred>

sa: URI friends |Fred>
|URI: http://example.com/example-ontology#Jack> + |URI: http://example.com/example-ontology#Harry> + |URI: http://example.com/example-ontology#Ed> + |URI: http://example.com/example-ontology#Mary> + |URI: http://example.com/example-ontology#Rob> + |URI: http://example.com/example-ontology#Patrick> + |URI: http://example.com/example-ontology#Emma> + |URI: http://example.com/example-ontology#Charlie>
I guess that is it. Just note, this is probably not my final word on this topic. I really need to give it more thinking time.


Home
previous: maybe we dont need projections
next: semantic networks in bko

updated: 19/12/2016
by Garry Morrison
email: garry -at- semantic-db.org