Skip to content

Commit

Permalink
Issue schemaorg#1670: Added subjectOf property as an inverse of about.
Browse files Browse the repository at this point in the history
  • Loading branch information
vholland committed Jul 19, 2017
1 parent 7c19bf4 commit 158f241
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions data/ext/pending/issue-1670-examples.txt
@@ -0,0 +1,27 @@
TYPES: CreativeWork, Thing

PRE-MARKUP:

See JSON example.

MICRODATA:

See JSON example.

RDFA:

See JSON example.

JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Thing",
"name": "Schema.org Ontology",
"subjectOf": {
"@type": "Book",
"name": "The Complete History of Schema.org"
}
}
}
</script>
31 changes: 31 additions & 0 deletions data/ext/pending/issue-1670.rdfa
@@ -0,0 +1,31 @@
<div>
<!-- issue 1670 -->
<div typeof="rdf:Property" resource="http://schema.org/about">
<span class="h" property="rdfs:label">about</span>
<span property="rdfs:comment">The subject matter of the content.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/CreativeWork">CreativeWork</a></span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/CommunicateAction">CommunicateAction</a></span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Event">Event</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Thing">Thing</a></span>
<link property="http://schema.org/inverseOf" href="http://schema.org/subjectOf"/>

<link property="http://schema.org/isPartOf" href="http://pending.schema.org" />
<span property="schema:category">issue-1670</span>
<a property="dc:source" href="https://github.com/schemaorg/schemaorg/issues/1670"></a>
</div>

<div typeof="rdf:Property" resource="http://schema.org/subjectOf">
<span class="h" property="rdfs:label">subjectOf</span>
<span property="rdfs:comment">A CreativeWork or Event about this Thing..</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Thing">Thing</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/CreativeWork">CreativeWork</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Event">Event</a></span>
<link property="http://schema.org/inverseOf" href="http://schema.org/about"/>

<link property="http://schema.org/isPartOf" href="http://pending.schema.org" />
<span property="schema:category">issue-1670</span>
<a property="dc:source" href="https://github.com/schemaorg/schemaorg/issues/1670"></a>
</div>


</div>

0 comments on commit 158f241

Please sign in to comment.