-2

I am using schema.org to describe stocks on my website. Schema.org says I should use the NAICS code: http://schema.org/Organization. But I am not sure if the NAICS numerical code is better or the NAICS text name. E.g:

Which one should I use:

Code: 111199

Name: Barley farming, field and seed production

4

1 回答 1

2

schema.org 中的 NAICS 源自GoodRelations词汇表中的适当属性。在 GoodRelations owl 本体文件中,您可以找到

  <owl:DatatypeProperty rdf:about="http://purl.org/goodrelations/v1#hasNAICS">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:label xml:lang="en">has NAICS (0..*)</rdfs:label>
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdf:Description rdf:about="http://purl.org/goodrelations/v1#BusinessEntity"/>
          <rdf:Description rdf:about="http://schema.org/Organization"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:comment xml:lang="en">The North American Industry Classification System (NAICS) code for a particular gr:BusinessEntity.
See http://www.census.gov/eos/www/naics/ for more details.

Note: While NAICS codes are sometimes misused for classifying products or services, they are designed and suited only for classifying business establishments.</rdfs:comment>
    <rdfs:isDefinedBy rdf:resource="http://purl.org/goodrelations/v1"/>
  </owl:DatatypeProperty>

您对这条特定线路感兴趣

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>

因此,即使 schema.org 中的属性类型是 Text,最好使用数字代码。

于 2013-09-12T21:09:05.553 回答