简体   繁体   中英

Create an ontology for a simple mathematical ques

I want a help to create an ontology for a simple mathematical question in protege. Question is like this,

"There are 5 boxes with 8 pencils, 6 boxes with 2 pencils, 4 boxes with 3 pencils.How many pencils are there?"

The quantity and the name of the Items can be changed. I just want a help, how to get a pattern to represent this question in protege.

This is a part of my ontology. But it doesnt represnt the quantity with respect to the each item quantity sets.

<!-- Item1 -->

<owl:NamedIndividual rdf:about="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item1">
    <rdf:type rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item"/>
    <Item1_Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">PencilBox</Item1_Name>
    <Item2_Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pencil</Item2_Name>
    <include rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item2"/>
</owl:NamedIndividual>



<!-- Item2 -->

<owl:NamedIndividual rdf:about="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item2">
    <rdf:type rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item"/>
    <Item2_Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pencil</Item2_Name>
</owl:NamedIndividual>

Here is the part of the ontology with instances.

<owl:NamedIndividual rdf:about="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item1">
    <rdf:type rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item"/>
    <Item1_Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Box</Item1_Name>
    <Item1_Quantity rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">4</Item1_Quantity>
    <Item1_Quantity rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">5</Item1_Quantity>
    <has rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item2"/>
</owl:NamedIndividual>



<!-- Item2 -->

<owl:NamedIndividual rdf:about="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item2">
    <rdf:type rdf:resource="http://www.semanticweb.org/imesha/ontologies/2015/7/untitled-ontology-26#Item"/>
    <Item2_Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">pencils</Item2_Name>
    <Item2_Quantity rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</Item2_Quantity>
    <Item2_Quantity rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">8</Item2_Quantity>
</owl:NamedIndividual>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM