Leonard, first, to answer the question on whether this use case is a
supported, the answer is "no". TopBraid Suite, including TopBraid
Composer has a number of mechanisms for importing and including
existing RDF/RDFS/OWL constructs. In particular, if your scenario is
to move a definition from one model to another, I'd direct your
attention to Help > How to? > Refactor ontologies.
Holger also mentions using SPARQLMotion to import files and snippets
into your model. The is a very flexible
power tool that will support moving data from one model to another.
If you wish to work with "source code", i.e. a text serialization
format, I'd suggest using the Turtle syntax, which is more human-
readable and editable, and has better performance characteristics when
loading the text serialization. You can open a file in its text
serialization by right-clicking on a file in the Navigator viewer and
choosing Open With… > Text Editor.
Insofar as editing the Source Code sub-tab is concerned, it appears
you are attempting to replace the definition of owl:Thing with a class
definition. This would give the behavior you describe. Note that the
interface will only show the definitions the interface is able to
process correctly. If you need to see all of your data, either use
the Triples View (Window > Show View > Triples) or view the triples in
the SPARQL View (to get all triples, apply this query: SELECT * WHERE
{?s ?p ?o}).
For re-installing TBC, just unzip the download into a different
directory on your machine and run the executable from that directory
(i.e. there is no need to delete old versions). In terms of system
stability, make sure you don't edit any files in the TopBraid folder
in the workspace. If you let us know what the startup errors are,
we'd be happy to look into it (also let us know what version of TBC is
used and the OS it is installed on).
-- Scott
On Mar 28, 2:21 pm, Leonard Jacuzzo <[email protected]> wrote:
> Hi Holger,
> I have two questions. First, I would like to completely uninstall and
> reinstall TBC on my machine. What is the best means of doing this. Everytime
> I try it, there is some piece left over. For example, I still have the same
> workbench etc. I would like to completely reinstall TBC because it has been
> ganky for a while and now show errors on start up.
>
> The second question is the same as last night. I tried to paste on the
> machine at work and had the same problems as at home. Here is my detailed
> explanation.
>
> I start off with a file that contains the class for which I would like to
> make a subclass. The code for that class is
>
> <owl:Class rdf:ID="Blood_Sugar_InSpec">
>
> <rdfs:subClassOf rdf:resource="#Blood_Sugar_Reading"/>
>
> </owl:Class>
>
> Then I create a long text file with hundreds strings that resemble this:
>
> <owl:Class rdf:ID="Blood_Sugar_ExHigh" > "
> <rdfs:subClassOf rdf:resource="#Blood_Sugar_InSpec"/>
> <rdfs:subClassOf>
> <owl:Class>
> <owl:intersectionOf rdf:parseType="Collection">
> <owl:Restriction>
> <owl:onProperty rdf:resource="#Has_SL"/>
> <owl:someValuesFrom>
> <rdfs:Datatype>
> <owl:onDatatype
> rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
> <owl:withRestrictions rdf:parseType="Collection">
> <rdf:Description>
> <xsd:minInclusive
> rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
> >0.0898</xsd:minInclusive>
> </rdf:Description>
> </owl:withRestrictions>
> </rdfs:Datatype>
> </owl:someValuesFrom>
> </owl:Restriction>
> <rdfs:Datatype>
> <owl:onDatatype
> rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
> <owl:withRestrictions rdf:parseType="Collection">
> <rdf:Description>
> <xsd:maxExclusive
> rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
> >0.097</xsd:maxExclusive>
> </rdf:Description>
> </owl:withRestrictions>
> </rdfs:Datatype>
> </owl:intersectionOf>
> </owl:Class>
> </rdfs:subClassOf>
> </owl:Class>
>
> When I paste this string into the source code view for "thing" I end up with
> this:
>
> <owl:Class rdf:ID="Blood_Sugar_ExHigh">
>
> <rdfs:subClassOf>
>
> <owl:Class>
>
> <owl:intersectionOf rdf:parseType="Collection">
>
> <owl:Restriction>
>
> <owl:someValuesFrom>
>
> <rdfs:Datatype>
>
> <owl:withRestrictions rdf:parseType="Collection">
>
> <rdf:Description>
>
> <xsd:minInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>
> >0.2014</xsd:minInclusive>
>
> </rdf:Description>
>
> </owl:withRestrictions>
>
> <owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
>
> </rdfs:Datatype>
>
> </owl:someValuesFrom>
>
> <owl:onProperty rdf:resource="#Has_CT"/>
>
> </owl:Restriction>
>
> <rdfs:Datatype>
>
> <owl:withRestrictions rdf:parseType="Collection">
>
> <rdf:Description>
>
> <xsd:maxExclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>
> >0.211</xsd:maxExclusive>
>
> As you can see, the class that I inserted is no longer declared to be a
> subclass of the class which I encoded as subclass. It gets stuck as a
> subclass of "thing"
>
> If I save this file in TBC, it erases all of the previous classes and will
> only save the new "non-subclass" info.
>
> I just tried to accomplish the paste at work and it no longer works. Which
> is strange because it worked on Friday.
>
> Here is a question. Is the method that I am attempting supposed to work as I
> intend it to work? Can one paste source code for an ontology into the source
> code field for "THING"? It was working like a charm and now does not.
> However, it is a super convenient means of adding a ton of stuff to an
> ontology. I would love to continue as I was.
>
> I hope that I have given you enough information. (I have to make up stuff to
> show you as I can't show you the real deal)
>
> Best,
>
> Leonard
>
> On Sun, Mar 27, 2011 at 7:03 PM, Holger Knublauch
> <[email protected]>wrote:
>
>
>
> > On Mar 28, 2011, at 9:00 AM, Leonard Jacuzzo wrote:
> > > I will attempt to supply more information on the pasting problem as I
> > find this most convenient.
>
> > > What sorts of information would you like?
>
> > A minimal, reproducible test scenario would be needed, e.g. start with file
> > A that has a couple of classes, then try to add file B and show me where
> > data gets lost. If you could attach those two minimal files then I may be
> > able to help you better.
>
> > Thanks,
> > Holger
>
> > --
> > 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