There is a specific example of this in Exercise 1 of the SPARQLMotion tutorial. You can get this from http://www.topquadrant.com/products/SPARQLMotion.html
-- Scott On Oct 25, 12:29 pm, "Bob Ducharme" <[email protected]> wrote: > David, > > The SPARQLMotion Apply Construct Module (in the SPARQLMotion palette's "RDF > Processing" category of modules) lets you run a SPARQL CONSTRUCT query on > the triples that are sent to it and then pass along the new triples to the > next module in your script. You could use this to take your existing triples > and create new triples in your three classes from the values in the existing > triples used as input to the module. If you set the module's sml:replace > parameter to true, it will only pass along the new triples and not the input > ones. > > Based on the error message you saw about the </body> end tag, I'm guessing > that the file that you're importing is HTML but not XHTML, which must be > well-formed XML. There are free utilities available such as HTML Tidy and > TagSoup that can convert HTML to well-formed XHTML, but the Import XHTML > module does not have built-in features to correct well-formedness errors in > an HTML file. > > Bob DuCharme > TopQuadrant > > -----Original Message----- > From: [email protected] > > [mailto:[email protected]] On Behalf Of > [email protected] > Sent: Tuesday, October 25, 2011 12:45 PM > To: TopBraid Suite Users > Subject: [topbraid-users] SPIN motion question. > > I am attempting to use SPIN Motion to bring in a remote RDF then take > that RDF and manipulate it so that I put the triples into a new class > structure, within a new ontology. I can import the RDF but have not > found any examples to take the exsiting triples and put them into > three classes as opposed to the single one. Also, one of the triples > is a link to an html page with more data. I need to import that html > and take the tags such as description and put the content into a > description class, I am getting an error of: > > Could not execute SPARQLMotion script org.xml.sax.SAXParseException: > The element type "body" must be terminated by the matching end-tag "</ > body>". > > when trying to use the XHTML module. > > Any help would be appreciated. > > thx > > -- > You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include TopBraid Composer, > TopBraid Live, TopBraid Ensemble, SPARQLMotion 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 > athttp://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 TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion 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
