-
Notifications
You must be signed in to change notification settings - Fork 0
URI to QName Design Notes
aldonline edited this page Sep 13, 2010
·
1 revision
URI to QName (U2Q) and QName to URI (Q2U) conversions can be applied on any SPARQL or TTL-like document.
U2Q Strategy
- Go over the whole document searching for <{URI}> occurrences.
- For each URI, try to extract ns/local tuple.
- Collect all NSs.
- Present user with a form to fill. He should be able to set prefixes for each NS
- With this information, the script should go over every URI and execute the replacement. Inserting prefixes.
TODO:
Splitting NS+Local ( in Ruby )?
Collecting some NS suggestions.
- Local ( from the project, by running a regex )
- http://prefix.cc/
Q2U Strategy
- Find prefix declarations and store (prefix, ns) tuples
- Search for prefix = ':' occurrences. Do NOT search within strings ( single, double, triple quotes ).