Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility for <phrase> to be a definiens #356

Open
jbs1 opened this issue Jul 4, 2016 · 1 comment
Open

Add possibility for <phrase> to be a definiens #356

jbs1 opened this issue Jul 4, 2016 · 1 comment

Comments

@jbs1
Copy link

jbs1 commented Jul 4, 2016

migrated from Trac, where originally posted by clange on 29-Aug-2010 11:56am

In the following example for parallel markup/literate programming, we have a term (definiendum), which is defined by a phrase. So the <phrase> element needs some markup to state that it is a definiens. A year ago I have come up with the markup below, not yet thinking of its semantics in terms of the OMDoc ontology, but I think it's a good start:

<definition for="Student" type="simple" xml:id="Student.def">
  <CMP><term xml:id="stud" cd="uni" name="Student" role="definiendum">A student</term> is 
<phrase role="definiens" for="#stud" verbalizes="#A"><phrase verbalizes="#A2">a person</phrase> <phrase verbalizes="#A1">who 
is</phrase> <phrase verbalizes="#A3"><phrase verbalizes="#A3B">enrolled</phrase> <phrase verbalizes="#A3C">
<phrase verbalizes="#A3C1">at least</phrase> <phrase verbalizes="#A3C2">once</phrase></phrase></phrase></phrase>.</CMP>
  <OMOBJ xmlns="http://www.openmath.org/OpenMath">
    <OMA id="#A">
      <OMS id="#A1" cd="owl" name="intersectionOf"/>
      <OMS id="#A2" cd="foaf" name="Person"/>
      <OMA id="#A3">
        <OMS id="#A3A" cd="owl" name="Restriction"/>
        <OMS id="#A3B" cd="uni" name="enrolledIn"/>
        <OMA id="#A3C">
          <OMS id="#A3C1" cd="owl" name="minCardinality"/>
          <OMI id="#A3C2">1</OMI>
        </OMA>
      </OMA>
    </OMA>
  </OMOBJ>
</definition>
@jbs1
Copy link
Author

jbs1 commented Jul 4, 2016

migrated from Trac, where originally posted by clange on 29-Aug-2010 11:58am

Nonsense, I think nesting <term role="definiens"><phrase verbalizes="#A">...</phrase></term> does the job well enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant