0

我需要帮助为门生中的一个简单数学问题创建一个本体。问题是这样的,

“有5盒8支铅笔,6盒2支铅笔,4支3支铅笔。有多少支铅笔?”

可以更改项目的数量和名称。我只是想要一个帮助,如何获得一个模式来代表这个问题。

这是我本体的一部分。但它并不代表每个项目数量集的数量。

<!-- 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>

4

1 回答 1

0

这是带有实例的本体的一部分。

<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>
于 2015-08-26T02:12:53.343 回答