Skip to content

Commit c16cacd

Browse files
committed
Add simplified vocabulary expansion from discussion on issue #10. This obviates issue #11 entirely.
1 parent 952de66 commit c16cacd

File tree

1 file changed

+37
-22
lines changed

1 file changed

+37
-22
lines changed

index.html

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -332,18 +332,9 @@

Issues

332332
as a fragment of the document base.
333333
The former <code>multipleValuescode> is treated like false, where values are never placed in an <code>rdf:List.code>
334334
p>
335-
<p class="issue" data-number="11">
336-
Use full RDFa Entailment if <code>vocab_expansioncode> option given.
337-
The current spec duplicates rules for vocabulary entailment from RDFa, but also
338-
allows RDFa entailment. Issue #10 suggests making vocabulary expansion (and
339-
entailment) controlled by a processor option. Also, since original publication,
340-
schema.org is now publishing an RDFs vocabulary at
341-
http://schema.org/docs/schema_org_rdfa.html. If this vocabulary contained the
342-
following statement:<br/>
343-
<code>schema:additionalType rdfs:subPropertyOf rdf:type .code><br/>
344-
the need for special registry rules for additionalType would be removed,
345-
provided that RDFa vocabulary expansion is performed, where the schema.org
346-
vocabulary is used to perform entailment operations.
335+
<p class="issue strike resolved" data-number="11">
336+
The use of Entailment to facilitate vocabulary expansion is replaced with direc triple
337+
generation during the core processing algorithm.
347338
p>
348339

349340
<p>The purpose of this specification is to provide input to a future working group that can make decisions
@@ -815,9 +806,20 @@

Vocabulary Expansion

815806
] .
816807
-->
817808
pre>
809+
810+
<p class="note">The <code>owl:equivalentPropertycode> rule is more powerfull than <code>rdfs:subPropertyOfcode>,
811+
in that if any equivalent property matches, then the source property would also cause a triple to be generated.
812+
For example, if the registry stated that <code>namecode> was equivalent to <code>rdfs:labelcode>,
813+
than any use of <code>namecode> in a <a class="aref">itempropa> would cause a triple using
814+
<code>rdfs:labelcode> to be emitted, as with <code>rdfs:subPropertyOfcode>. However, logically,
815+
any use of <code>labelcode> where the current voabulary were <code>rdfs:code> could also cause
816+
a triple using <code>schema:namecode> to be emitted. To simplify processing, this specification
817+
requires that all values of a <code>owl:equivalentPropertycode> registry entry have their
818+
own rules with those values as keys within the <code>propertycode> section of their respective
819+
vocabularies.p>
818820
section>
819821

820-
<section>
822+
<section class="strike">
821823
<h2>Vocabulary Entailmenth2>
822824
<p>Formally, and for the purpose of vocabulary processing, microdata uses a very
823825
restricted subset of the OWL2 vocabulary and is based on the RDF-Based Semantics of OWL2 [[!OWL2-RDF-BASED-SEMANTICS]].
@@ -854,7 +856,7 @@

Vocabulary Entailment

854856
a separate entailment algorithm. To allow [[RDFA-CORE]] processors to be used for microdata vocabulary expansion, microdata acts as if there is an implicit <code>@vocabcode> RDFa attribute set to a detected vocabulary by emitting
855857
a triple using the <code>rdfa:usesVocabularycode> predicate.p>
856858

857-
<p class="note"><a href="#issues">Issue 11a>span> suggests making the use of RDFa entailment
859+
<p class="note strike"><a href="#issues">Issue 11a>span> suggests making the use of RDFa entailment
858860
the requirement, as vocabulary expansion is now proposed to be under the control of the
859861
<code>vocab_expansioncode> option.p>
860862

@@ -907,15 +909,15 @@

Control of Microdata Processors

907909
must be loaded from the location indicated as the option value, Otherwise,
908910
the processor MUST load the default <a>registrya> from <code>http://www.w3.org/ns/mdcode>.
909911
<span class="note nostrike">see <a href="#issues">issue 10a>span>.
910-
<p>If vocabulary expansion is performed by the microdata processor, and the
912+
<p class="strike">If vocabulary expansion is performed by the microdata processor, and the
911913
<code>vocab_expansioncode> option is passed to the microdata processor,
912914
the full [[RDFA-CORE]] entailment MUST also be performed.
913915
The default value for <code>vocab_expansioncode> is <strong>falsestrong>.p>
914-
<p>Setting <code>registrycode> and <code>vocab_expansioncode> is performed in a processor-specific way.p>
916+
<p>Setting <code>registrycode> <span class="strike">and <code>vocab_expansioncode>span> is performed in a processor-specific way.p>
915917
<p>
916-
When accessed as a <strong>web servicestrong> using HTTP GET, POST or similar action, processors SHOULD use <code>registrycode> and <code>vocab_expansioncode>
917-
query parameters. Acceptable values for <code>registrycode> is a URI-encoded URL.
918-
Acceptable values for <code>vocab_expansioncode> are <strong>truestrong> and <strong>falsestrong>.
918+
When accessed as a <strong>web servicestrong> using HTTP GET, POST or similar action, processors SHOULD use <code>registrycode> <span class="strike">and <code>vocab_expansioncode>span>
919+
query parameter<span class="strike">sspan>. Acceptable values for <code>registrycode> is a URI-encoded URL.
920+
<span class="strike">Acceptable values for <code>vocab_expansioncode> are <strong>truestrong> and <strong>falsestrong>.span>
919921
Web service processors SHOULD return the resulting RDF graph using a requested format specified by
920922
HTTP Content Negotiation for an acceptable content type. Web service processors MUST support [[!N-TRIPLES]].
921923
section>
@@ -1274,7 +1276,7 @@

RDF Conversion Algorithm

12741276
<dd><em>valueem>dd>
12751277
dl>
12761278
li>
1277-
<li>
1279+
<li class="strike">
12781280
If the processor is given the <code>vocab_expansioncode> option, perform <a href="#vocabulary-entailment">Vocabulary Entailmenta>.li>
12791281
ol>
12801282
section>
@@ -1324,7 +1326,7 @@

Generate the triples

13241326
Otherwise, set <em>typeem> to <a>current typea> from
13251327
<a>evaluation contexta> if not empty.
13261328
li>
1327-
<li>If the <a>registrya> contains a <a>URI prefixa> that is a
1329+
<li class="strike">If the <a>registrya> contains a <a>URI prefixa> that is a
13281330
character for character match of <em>typeem> up to the length of the
13291331
<a>URI prefixa>,
13301332
and the processor is given the <code>vocab_expansioncode> option,
@@ -1382,6 +1384,19 @@

Generate the triples

13821384
<dd><em>valueem>dd>
13831385
dl>
13841386
li>
1387+
<li>
1388+
If an entry exists in the <a>registrya> for <em>nameem> in the vocabulary
1389+
associated with <em>vocabem> having the key <code>subPropertyOfcode> or
1390+
<code>equivalentPropertycode>, for each such value <em>equivem>, generate the following triple:
1391+
<dl class="triple">
1392+
<dt>subjectdt>
1393+
<dd><em>subjectem>dd>
1394+
<dt>predicatedt>
1395+
<dd><em>equivem>dd>
1396+
<dt>objectdt>
1397+
<dd><em>valueem>dd>
1398+
dl>
1399+
li>
13851400
ol>
13861401
li>
13871402
ol>
@@ -1446,7 +1461,7 @@

Generate Predicate URI

14461461
<p>Predicate URI generation makes use of <a>current typea>,
14471462
<a class="strike">current namea>, and <a>current vocabularya> from an <a>evaluation
14481463
contexta> <em>contextem> along with <em>nameem>.p>
1449-
<p class="note">Support for the <code>contextualcode> <em>schemaem> is
1464+
<p class="note">Support for the <code>contextualcode> <em>schemeem> is
14501465
being considered for removal
14511466
(see <a href="#issues">issue 10a>).p>
14521467

0 commit comments

Comments
 (0)