Updating QA with QAPage subtype of WebPage; also fixing comment property to work with Comment type. Preparing for scan of other feedback in http://lists.w3.org/Archives/Public/public-vocabs/2014Jan/0107.html
authordanbri <danbri@google.com>
Thu, 06 Feb 2014 18:10:12 +0100
changeset 171 cb75cd931729
parent 170 3b6bd3b85749
child 172 eb9d44971328
Updating QA with QAPage subtype of WebPage; also fixing comment property to work with Comment type. Preparing for scan of other feedback in http://lists.w3.org/Archives/Public/public-vocabs/2014Jan/0107.html
schema.org/ext/QA.html
--- a/schema.org/ext/QA.html	Wed Feb 05 22:04:47 2014 +0100
+++ b/schema.org/ext/QA.html	Thu Feb 06 18:10:12 2014 +0100
@@ -18,12 +18,23 @@
     <p>Enrichment of Schema.org to enable annotation of questions and answers type of content.</p>
     <p>See <a href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">wiki</a> for details.</p>
 
+    <!--  New QAPage class. -->
+    <div typeof="rdfs:Class" resource="http://schema.org/QAPage">
+      <span class="h" property="rdfs:label">QAPage</span>
+      <span property="rdfs:comment">A QAPage is a WebPage focussed on a specific Question and its Answer(s).</span>
+      <span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/WebPage">WebPage</a></span>
+    </div>
+
+    <!-- extend range of comment property to include Comment type, not just the old UserComments -->
+    <div typeof="rdf:Property" resource="http://schema.org/comment">
+      <link property="http://schema.org/range" href="http://schema.org/Comment" />
+    </div>
+
     <!--  New Question class. -->
     <div typeof="rdfs:Class" resource="http://schema.org/Question">
       <span class="h" property="rdfs:label">Question</span>
-      <span property="rdfs:comment">A detailled question that a user is seeking an answer from a community of experts.</span>
+      <span property="rdfs:comment">A detailed question that a user is seeking an answer from a community of experts.</span>
       <span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/CreativeWork">CreativeWork</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <!--  New properties for the new Question class. -->
     <div typeof="rdf:Property" resource="http://schema.org/upvoteCount">
@@ -33,7 +44,6 @@
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Answer">Answer</a></span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Comment">Comment</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Integer">Integer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/downvoteCount">
       <span class="h" property="rdfs:label">downvoteCount</span>
@@ -42,14 +52,12 @@
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Answer">Answer</a></span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Comment">Comment</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Integer">Integer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/viewCount">
       <span class="h" property="rdfs:label">viewCount</span>
       <span property="rdfs:comment">The number of times this questions has viewed.</span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Question">Question</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Integer">Integer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/lastEditor">
       <span class="h" property="rdfs:label">lastEditor</span>
@@ -57,14 +65,12 @@
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Question">Question</a></span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Answer">Answer</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Person">Person</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/answerCount">
       <span class="h" property="rdfs:label">answerCount</span>
       <span property="rdfs:comment">The number of answers this question has received.</span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Question">Question</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Integer">Integer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/commentCount">
       <span class="h" property="rdfs:label">commentCount</span>
@@ -72,14 +78,12 @@
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Question">Question</a></span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Answer">Answer</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Integer">Integer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <div typeof="rdf:Property" resource="http://schema.org/acceptedAnswer">
       <span class="h" property="rdfs:label">acceptedAnswer</span>
       <span property="rdfs:comment">The answer the owner of the original question has accepted as best answer.</span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Question">Question</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Answer">Answer</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
 
     <!--  New Answer class. -->
@@ -87,7 +91,6 @@
       <span class="h" property="rdfs:label">Answer</span>
       <span property="rdfs:comment">An answer to a question.</span>
       <span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/CreativeWork">CreativeWork</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
     <!--  New properties for the new Answer class. -->
     <div typeof="rdf:Property" resource="http://schema.org/parentItem">
@@ -96,7 +99,6 @@
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Answer">Answer</a></span>
       <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Comment">Comment</a></span>
       <span>Range: <a property="http://schema.org/range" href="http://schema.org/Question">Question</a></span>
-      <span>Source:  <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/QASchemaResearch">QASchemaResearch</a></span>
     </div>
 
     <hr />