thanks. I put the code in the sml:ApplyConstruct and it works. However, how do I make it permanent as opposed to inferred ?
thx,
david
David Petrovich
Senior Principal Systems Engineer
Command And Control Systems, Security Solutions
Network Centric Systems
Raytheon Company
(business)
+1.727.302.3176
(cell)
+1.727.252.9231
(fax)
+1.727.768.8699
[email protected]
8333 Bryan Dairy Rd.
Largo, Florida 33777 United States
www.raytheon.com
Raytheon Sustainability
This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this message
in error, please so advise the sender by reply e-mail and delete this
message. Thank you for your cooperation.
From: "Bob Ducharme" <[email protected]>
To: <[email protected]>
Date: 11/09/2011 06:33 PM
Subject: RE: [topbraid-users] adding a label in SPIN
Sent by: [email protected]
David,
How's this: I stored the following in an XML file, opened it up as semantic
XML, and imported sp.rdf and spin.rdf into the model.
<orders>
<order><item>shirt</item><color>blue</color></order>
<order><item>belt</item><color>black</color></order>
<order><item>socks</item><color>white</color></order>
</orders>
I then added the following spin:rule to the item class created by the
semantic XML import:
CONSTRUCT {
?this rdfs:label ?label .
}
WHERE {
?this composite:child ?cc .
?cc sxml:text ?label .
}
With TopSPIN included as one of the selected inference engines, running
inferences then gave each item instance an rdfs:label value of the PCDATA
from the item element (i.e. the sxml:text value of its composite:child).
Bob
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, November 09, 2011 4:30 PM
To: TopBraid Suite Users
Subject: [topbraid-users] adding a label in SPIN
I have an xml file that I converted to RDF. I have about 35 classes
and each class has several instances.
I am trying to add a label to each instance, based on a
composite:child reference to another instance that contains the
smxml:text
Any examples to do this would be appreciated. I would like to do it
within SPIN.
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 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 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
--
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
<<inline: 20739887.gif>>
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
