Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Parsing Cyc Result

Help
Anand Nyam
2010-07-07
2013-05-28
  • Anand Nyam
    Anand Nyam
    2010-07-07

    I am using API,

    CycList queryVariables(CycList queryVariables, CycList query, CycObject mt, HashMap queryProperties)

    to get results from the Cyc.

    from the query
                                          (thereExists ?SUBJECT
       (and
           (behaviorCapability-performedBy-SubjectString-ActionFunction-QuantityInteger #$Employee:abc technicalSupportFor ?SubjectMatterId ?Rank)
           (eKBSubjectMatterIDNumber ?SUBJECT ?SubjectMatterId)
           (eKBSubjectMatterDisplayString ?SUBJECT ?SubjectMatter)))

    How do we get the results based on CycVaribales(queryVaribales) passed ??

    Thanks
    Anand

     
  • David Baxter
    David Baxter
    2010-07-07

    Hi Anand,

    The order of the bindings is determined by the order of the variables. So if queryVariables is (?SubjectMatter ?Rank ?SubjectMatterId) and you get back ("Foo" 2 27) as one of the items on the returned CycList, then "Foo" is the binding for ?SubjectMatter, ?Rank is 2, and ?SubjectMatterId is 27.

    David