Thanks Scott, This information is so helpful for me ... Thanks again!. - Baitiah -
On Mar 26, 1:07 am, Scott Henninger <[email protected]> wrote: > Baitiah; First, for manually creating your sequence, autocomplete is quite > valuable. Type the first couple of characters then <ctl>-space. You get a > list of completions to choose from. It's a bit time saver mostly because it > reduces typos to zero. > To create the sequence programatically, you can utilize the rdf:Seq syntax in > a SPARQL query. For example a SPARQL syntax for three items in a :has > Students sequence is: > ?someRsc :hasStudent _:b0 . > _:b0 a rdf:Seq . > _:b0rdf:_1 :s001 . > _:b0rdf:_2 :s002 . > _:b0rdf:_3 :s003 . > The remaining detail is to create a sequence of integers for the ordering. > This can be done with a SPARQLMotion script. and I have attached an example. > The script uses IterateOverSelect to generate a sequence number each member > of a class, ordered through ORDER BY (of course any criteria can be used to > query out the sequence members). The script is in the .sms file and the data > it imports is in the other file. If you run the script a new file is created > with an alphanumerically ordered rdf:seq list. > -- Scott > On 3/25/11 2:57 AM, Baitiah Ambiah wrote:Thanks Hoger for the prompt reply. > The syntax [A, B, C] .. Is this sequence is define by ourself? for example , > i hv property called hasStudent and this property is rdf:Seq. If i have a > class which has 100 hundred students.. If i want to link hasStudent to the > students and in alphabetic order , do i need to do it manually , and put in > this, for example [ Amy, Johann, Mohamed,..etc] ? Is there a way to > automatically arrange the order by using rdf:Seq? or it just a place that > topbraid offer , intentionally to put ordered list? Thanks alot . On Mar 25, > 1:50 pm, Holger Knublauch<[email protected]>wrote:Hi Baitiah, since > there is an infinite number of rdf:_1, rdf:_2 etc properties, we cannot > enumerate them in advance. If you really want to drill down onto that level, > you would need to define them yourself. However, TBC makes editing rdf:Seqs > easy. If the range of your property is rdf:Seq, then it will automatically > use a Seq editor. The syntax there is [A, B, C] Regards. Holger On Mar 25, > 2011, at 12:06 PM, Baitiah Ambiah wrote:Hi All, I have couple of questions > about rdfs:Container which are rdf:bag ,rdf:Seq and rdf:Alt.From my > understanding, bag is intended for unordered set , Seq is for ordered set and > Alt is for alternative set.I qoute the below statement about rdf:Bag ( > fromhttp://www.w3.org/TR/rdf-syntax/)"The members of the container can be > described by defining a container membership property for each member with > the container resource as its subject and the member as its object. These > container membership properties have names of the form rdf:_n, where n is a > decimal integer greater than zero, with no leading zeros, e.g., rdf:_1, > rdf:_2, rdf:_3, and so on, and are used specifically for describing the > members of containers."My question ; is these rdf:_1 , rdf:_2 and so on need > to be defined by ourself and put under type : > rdfs:ContainerMembershipProperty?Another question is , for rdf:Seq , is the > order need to be defined by ourself?Thanks in advance..-- 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 > [email protected] unsubscribe from this group, send email > [email protected] more options, visit this > group athttp://groups.google.com/group/topbraid-users?hl=en- Hide quoted text > -- Show quoted text - > > rdfSeqExample.sms.ttl > 4KViewDownload > > rdfSeqExample.ttl > 1KViewDownload -- 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
