Hi Holger,

Thanks for the quick response!

For my first question, I may have not been specific enough.  I am
creating a function via an eclipse plug-in, which requires me to
extend AbstractFunction1, AbstractFunction2 or AbstractFunction3.
This is what is limiting the number of arguments.  Is there a
workaround for this?

For my second question, here is the SWRL rule which corresponds to the
query:

<ruleml:imp>
    <ruleml:_body>
      <swrlx:datavaluedPropertyAtom swrlx:property="&ont1;property">
        <ruleml:var>entity</ruleml:var>
        <ruleml:var>value</ruleml:var>
      </swrlx:datavaluedPropertyAtom>
    </ruleml:_body>
    <ruleml:_head>
      <swrlx:individualPropertyAtom swrlx:property="&ont2;property">
        <ruleml:var>entity</ruleml:var>
        <ruleml:var>value</ruleml:var>
    </ruleml:_head>
  </ruleml:imp>

For some reason in SWRL it matches the URI without having to iterate
through the list.  Let me know if you need anymore information.

Thanks again,
Suzanne


On Nov 11, 6:13 pm, Holger Knublauch <[email protected]> wrote:
> > CONSTRUCT{
> >    ?entity ont2:property ?member.
> > }
> > WHERE {
> >     ?entity ont1:property ?class
> >     ?item owl:oneOf ?list .
> >     ?list <http://jena.hpl.hp.com/ARQ/list#member> ?member .
> >     FILTER (xsd:string(?class) = xsd:string(?member)) .
> > }
>
> Seems like you want to copy all ?class values that are are part of any  
> owl:oneOf enumeration, independent from the value of ?list. In this  
> case you indeed would have to walk through all owl:oneOf. The fact  
> that you are type casting (xsd:string) all values makes direct pattern  
> matching difficult and FILTER is IMHO the only solution.
>
>
>
> > I get the proper result, however, it slows down my execution time  
> > significantly because it must traverse through all the lists of  
> > enumerations to filter out the correct one.  When running a similar  
> > rule in SWRL it is not necessary to iterate through the owl:oneOf  
> > list in order to match it correctly.
>
> Could you show us the rules in SWRL so that we can better understand  
> what you are doing?
>
> Thanks
> Holger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to