I know that this is an ancient topic, but I have also seen that TQ added a couple of functions, smf:prefix that takes a namespace and returns the prefix, and spif:prefix that is a magic property that supposedly takes namespaces and returns prefixes. I was hoping that I could use one of these to get a list of defined prefixes in a namespace, so that I can provide that information to users (what prefixes are defined/used in an ontology, and why). The problem seems to be being able to get the namespaces in the ontology. Its a chicken and egg problem and it is sad because we have the @prefix definitions in turtle and the xmlns definitions in rdf. And you are right, I could write a Java function that would easily identify all of the prefixes defined in a namespace. I just wonder why it hasn't been made into a function that is provided with the other functions and magic properties in TBC. It seems like low-hanging fruit to me.
On Tuesday, July 14, 2009 at 10:01:50 AM UTC-7, Holger Knublauch wrote: > > It would actually be doable to implement a SPIN function that takes a > namespace and returns the prefix for it. The function's body would > comprise of a call to smf:qname() followed by smf:substring to get > everything before the : > > Otherwise, of course, a Java function could do it, but that requires > more work... > > Holger > > > On Jul 14, 2009, at 9:52 AM, Catrina wrote: > > > > > Scott, > > > > That's what I thought, but thought it was worth asking. Thanks for > > the info. > > > > ~Catrina > > > > > -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
