Hello,
            I see one problem that I had.  I had to open with TopBraid
(Semantic XML Documents) instead of just opening with XML Editor.  Ok,
so I did that.  I'm watching the video on youtube.com that has the
same title, opening arbitrary xml documents.  When I get to open
Associations, I see nothing.  It is empty.  I thought I had followed
that video and was going to create an ontology using an xml file.  I
was going to import into that xml file FOAF, BIO and REL, 3 web
ontologies, one of which comes with TBC.
        I opened a xml file that was translated from a GEDCOM (the
file format for Genealogy).  So, where it uses PERSON in the XML file,
I'd change that Class to foaf:Person after importing foaf.  So, if I
understand right, I'd then remove all the instance data and Save As>
name.owl.  For some reason, I'm not seeing the xmap property which
would be needed to map PERSON to foaf:Person.  I actually didn't get
rid of the instance data yet.  So, the instance data is still mapped
to PERSON and other classes and not to foaf:Person.  I guess when I
import the original xml file into the owl file then it will do the
mapping.
Further questions: (1) If you have a class in an xml file that you
imported and in a vocabulary that you use, it is a property, what can
you do?  For example the GEDCOM xml has a class of NAME, which
corresponds to foaf:name which is a property.
(2) I have a class when the xml is imported called RELATIONSHIP, which
happens to be the name of an ontology and it is a class in the
ontology.  I'm not sure if I should reuse existing ontologies like
these three and keep their structure or create my own ontology.  I do
have data elsewhere that uses these ontologies.  I'm just not sure how
to tell TBC that when it sees the class NAME make that into foaf:name
property and etc.
(3) should I worry or wonder why there is nothing showing up in the
Associations view?
Bruce

On Sep 1, 4:58 pm, Gokhan Soydan <[email protected]> wrote:
> Bruce,
>
> Answers below:
>
> > Ok, I was able to open the XML file and see Classes and properties.
> > However, when I opened Associations, it was empty.
>
> After opening Associations view, click on the blue button (Select
> Property...) in the toolbar of the view. Select "composite:child" from
> the dialog. Then, you will see the XML instances in a tree hierarchy.
>
> > I could use the vocabularies that already exist like BIO, REL and
> > FOAF.  So, in the Genealogy XML file, I'd start by wanting the Class
> > Person to be
> > made an equivalent Class with foaf:Person or a subclass of
> > foaf:Person, not sure which.  Then I'd have some Event classes that
> > would relate to the BIO vocabulary.  So, I do have sxml:Node as a
> > Class and under that most of the data from the xml file is in the
> > sxml:TextNode.  There are 968 Instances here.  I wouldn't want to
> > connect this with any ontology because we have different types of data
> > in this class sxml:TextNode.
> > Maybe I want<PERSON>  from the imported XML file to be of type
> > foaf:Person instead of a subproperty of foaf:Person.
>
> I was late in my reply as I was thinking for a good answer for this
> part. I would suggest for you to wait for TBC 3.6.0 Beta release, which
> will have a lot of improvements in mapping an XML file to an ontology
> via SXML. Regarding those improvements, you will be able to specify
> annotations on classes and properties, which will map your XML instances
> to OWL instances with the annotated classes as their type, and these
> instances will be related to each other with the annotated properties
> rather than composite:child relationships.
>
> For further mappings like owl:equivalentClass, you can already construct
> an ontology with that property and use SPIN rules (SPARQL rules) to map
> XML instances to OWL instances with the type that those rules assert.
>
> Gokhan

-- 
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

Reply via email to