Thanks Gokhan, Would I embed that BIND in an UPDATE query to take advantage of the results?
Best, LFJ On Wed, Sep 26, 2012 at 6:17 PM, Gokhan Soydan <[email protected]>wrote: > Leonard, > > Here are the answers: > > Hi List, >> >> I was happy to discover how easy it is to import an XML file and convert >> it to RDF. >> >> I have two questions. >> >> First, is there an easy way to understand how the RDF relates to the XML? >> I am having trouble figuring out the graph so that I can extract the things >> that I need via SPARQL. >> > > I would suggest looking at TopBraid Composer > Working with XML > > Creating, Importing, Querying, Saving XML documents with Semantic XML from > TopBraid Composer help. (The location might be slightly different in an > earlier version of TopBraid Composer). One easy way to see the imported > instances is right-clicking on "composite:child" at Properties View and > select "Show in Associations View", which will show a tree structure > similar to the structure in the XML file. > > >> Second, the file, which was imported, results in class and property names >> that contain periods, as in 'edu.mayo.bmi.umia.refsem.token'.... >> >> > >> When I attempt to use those names in a SPARQL query, the syntax checker >> complains about the periods. Is there a work around for that, othe than >> manually changing all of the names? >> > > You could build resource names using them. You can use BIND functions to > do that as in the following: > > BIND( IRI( > "http://edu.mayo.bmi.umia.refsem.token#myExampleXMLResource<http://edu.mayo.bmi.umia.refsem.token/#myExampleXMLResource>" > ) AS ?resource ) > > or (sometimes IRI() may not work, then use the following) > > BIND( smf:resource( " > http://edu.mayo.bmi.umia.refsem.token#myExampleXMLResource<http://edu.mayo.bmi.umia.refsem.token/#myExampleXMLResource>" > ) AS ?resource ) > > Gokhan > > > > >> >> Any help will be fantastic. >> >> Best, >> Leonard >> >> -- >> -- You received this message because you are subscribed to the Google >> Group "TopBraid Suite Users", the topics of which include Enterprise >> Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, >> TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. >> To post to this group, send email to >> [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/topbraid-users?hl=en >> >> >> > > -- > -- You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include Enterprise > Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, > TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en > > > -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
