Giter Club home page Giter Club logo

schema-org's Introduction

schema.org

schema.org provides well structured data model for linked data. They also tried to provide the model in RDF format here, but now it's no longer maintained. Instead, TopQuadrant seems to take over the role.

TopQuadrant proposed some modifications in perspective of conventions which will be suited for many RDF/OWL tools(link). But there is one remaining problem with inverseOf property which seems to have duplicated meaning with owl:inverseOf. This may cause confusion when the reasoning is needed following 'inverseOf' relation.

One more thing may cause confusion is about supersededBy property which indicates some of the properties are not recommended to use.

Following these considerations, I revised the model again based on TopQuadrant proposed, as follows:

  • replace 'schema:inverseOf' to 'owl:inverseOf'
  • remove all the properties which includes 'supersededBy' restriction.
  • remove two annotation properties: 'schema:inverseOf' and 'schema:supersededBy'

Additionally, errors regarding of the declarations of some of the properties as follows:

  • Illegal redeclarations of some of the properties are fixed (declared as ObjectProperty and DataProperty): schema:commentTime, schema:seasonNumber, schema:startDate, schema:pageStart, schema:position, schema:query, schema:dateModified, schema:photo, schema:estimatedFlightDuration, schema:episodeNumber, schema:artEdition, schema:endDate, schema:mainEntityOfPage, schema:clipNumber, schema:dateCreated, schema:volumeNumber, schema:pageEnd, schema:issueNumber, schema:petsAllowed
<!-- before -->
<owl:ObjectProperty rdf:about="http://schema.org/commentTime">
  <rdfs:domain rdf:resource="http://schema.org/UserComments"/>
  <rdfs:range>
      <owl:Class>
          <owl:unionOf rdf:parseType="Collection">
              <rdf:Description rdf:about="http://www.w3.org/2001/XMLSchema#date"/>
              <rdf:Description rdf:about="http://www.w3.org/2001/XMLSchema#dateTime"/>
          </owl:unionOf>
      </owl:Class>
  </rdfs:range>
</owl:ObjectProperty>

<owl:DatatypeProperty rdf:about="http://schema.org/commentTime"/>

<!-- after -->
<owl:DatatypeProperty rdf:about="http://schema.org/commentTime">
  <rdfs:domain rdf:resource="http://schema.org/UserComments"/>
  <rdfs:range>
      <rdfs:Datatype>
          <owl:unionOf rdf:parseType="Collection">
              <rdf:Description rdf:about="http://www.w3.org/2001/XMLSchema#date"/>
              <rdf:Description rdf:about="http://www.w3.org/2001/XMLSchema#dateTime"/>
          </owl:unionOf>
      </rdfs:Datatype>
  </rdfs:range>
</owl:DatatypeProperty>
  • schema:loanTerm is modified to follow its superProperty, schema:duration
<!-- before -->
<owl:ObjectProperty rdf:about="http://schema.org/loanTerm">
  <rdfs:domain rdf:resource="http://schema.org/LoanOrCredit"/>
  <rdfs:range rdf:resource="http://schema.org/QuantitativeValue"/>
</owl:ObjectProperty>

<owl:DatatypeProperty rdf:about="http://schema.org/loanTerm">
  <rdfs:subPropertyOf rdf:resource="http://schema.org/duration"/>
</owl:DatatypeProperty>

<!-- after -->
<owl:DatatypeProperty rdf:about="http://schema.org/loanTerm">
  <rdfs:domain rdf:resource="http://schema.org/LoanOrCredit"/>
  <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#duration"/>
  <rdfs:subPropertyOf rdf:resource="http://schema.org/duration"/>
</owl:DatatypeProperty>
  • Misuses of schema:sameAs are fixed
<!-- before -->
<owl:DatatypeProperty rdf:about="http://schema.org/sameAs">
   <rdfs:domain rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
   <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#anyURI"/>
</owl:DatatypeProperty>

<!-- after -->
<owl:AnnotationProperty rdf:about="http://schema.org/sameAs">
   <rdfs:domain rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
   <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#anyURI"/>
</owl:AnnotationProperty>

License

Licensed under the terms of service documented here, which follows CC BY-SA 3.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.