简体   繁体   English

为简单的数学问题创建本体

[英]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?" “有5盒8支铅笔,6盒2支铅笔,4盒3支铅笔。那有几支铅笔?”

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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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