Hi Guys.

I have a large ontology in which multiple domains of both object and
datatype properties have been defined individually. e.g.

vocabProperty:hasChain
      rdf:type owl:ObjectProperty ;
      rdfs:domain vocabClass:Antibody, vocabClass:Structure;
      rdfs:range vocabClass:Chain .

These should be union domains for it to work properly
e.g.

vocabProperty:hasChain
      rdf:type owl:ObjectProperty ;
      rdfs:domain
              [ rdf:type owl:Class ;
                owl:unionOf (vocabClass:Antibody vocabClass:Structure)
              ] ;
      rdfs:range vocabClass:Chain .

I could go through and edit the file by hand, but that's going to take
some time.
I'd prefer to use a sparql construct in a sparql motion script to do it,
but I can't quite get it right.

Could anyone help me define the SM script to 
1. find any property (object or datatype) with multiple domains
2. add the domains to create the unionOf statement.

Thanks in advance

Cheers

Phil 
 
--------------------------------------------------------

UCB Celltech is the UK branch of UCB Pharma S.A., a company registered in 
Belgium with registered offices at Allee de la Recherche 60, 1070 Brussels, 
Belgium, KBO/BCE nr. 0403.096.168, RPR/RPM Brussels. 
UCB Celltech's UK branch registration number is BR009137 and its UK 
representative office is at 208 Bath Road, Slough, Berkshire SL1 3WE.
--------------------------------------------------------

Legal Notice: This electronic mail and its attachments are intended solely for 
the person(s) to whom they are addressed and contain information which is 
confidential or otherwise protected from disclosure, except for the purpose for 
which they are intended. Dissemination, distribution, or reproduction by anyone 
other than the intended recipients is prohibited and may be illegal. If you are 
not an intended recipient, please immediately inform the sender and return the 
electronic mail and its attachments and destroy any copies which may be in your 
possession. UCB screens electronic mails for viruses but does not warrant that 
this electronic mail is free of any viruses. UCB accepts no liability for any 
damage caused by any virus transmitted by this electronic mail. (Ref: #*CUK0308)
--------------------------------------------------------

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