Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/main/resources/default-configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ any23.plugin.dirs=./plugins
# to build URIs for anonymous properties
any23.microdata.strict=off
# ---- Microdata default namespace.
any23.microdata.ns.default=http://rdf.data-vocabulary.org/
any23.microdata.ns.default=http://schema.org/

# Allows to enable(on)/disable(off) the registration
# of HTMLMetaExtractor.java to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Review">
<div xmlns:v="http://schema.org/" typeof="v:Review">
<span property="v:itemreviewed">L’Amourita Pizza</span>
Reviewed by
<span property="v:reviewer">Ulysses Grant</span> on
<span property="v:dtreviewed" content="2009-01-06">Jan 6</span>.
<span property="v:author">Ulysses Grant</span> on
<span property="v:dateCreated" content="2009-01-06">Jan 6</span>.
<span property="v:summary">Delicious, tasty pizza on Eastlake!</span>
<span property="v:description">L'Amourita serves up traditional wood-fired
<span property="v:about">L'Amourita serves up traditional wood-fired
Neapolitan-style pizza, brought to your table promptly and without fuss.
An ideal neighborhood pizza joint.</span>
Rating:
<span property="v:rating">4.5</span>
<span property="v:reviewRating">4.5</span>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testReadDefaultConfig() {
extractionParameters.getFlag("any23.microdata.strict")
);
Assert.assertEquals(
"http://rdf.data-vocabulary.org/",
"http://schema.org/",
extractionParameters.getProperty("any23.microdata.ns.default")
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/site/apt/configuration.apt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ any23.extract(extractionParameters, "http://path/to/doc", tripleHandler);
*-------------------------------------------+-------------------------------+------------------------------------------------------------------------------------+
|any23.microdata.strict |on (possible values: on/off) |Activates/deactivates the microdata strict validation. |
*-------------------------------------------+-------------------------------+------------------------------------------------------------------------------------+
|any23.microdata.ns.default |http://rdf.data-vocabulary.org/|Microdata default namespace. |
|any23.microdata.ns.default |http://schema.org/|Microdata default namespace. |
*-------------------------------------------+-------------------------------+------------------------------------------------------------------------------------+
|any23.extraction.head.meta |on (possible values: on/off) |Activates/deactivates the HTMLMetaExtractor. |
*-------------------------------------------+-------------------------------+------------------------------------------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ document.write('<scr'+'ipt src="http://ad.doubleclick.net/adj/rt.movies/movielan


<div class="template_wrapper">
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Movie">
<div xmlns:v="http://schema.org/#" typeof="v:Movie">
<div class="col_679 col_left main">

<div id="movie_info_main" class="content ">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xml:lang="en" version="XHTML+RDFa 1.0" xmlns:ni="http://iptc.org/std/nar/2006-10-01/" xmlns:okkam="http://models.okkam.org/ENS-core-vocabulary.owl#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:ansa="http://bdm.ansa.it/NewsML-G2/ns/content" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:v="http://rdf.data-vocabulary.org/#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ninitf="http://iptc.org/std/NITF/2006-10-18/" xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xml:lang="en" version="XHTML+RDFa 1.0" xmlns:ni="http://iptc.org/std/nar/2006-10-01/" xmlns:okkam="http://models.okkam.org/ENS-core-vocabulary.owl#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:ansa="http://bdm.ansa.it/NewsML-G2/ns/content" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:v="http://schema.org/#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ninitf="http://iptc.org/std/NITF/2006-10-18/" xmlns="http://www.w3.org/1999/xhtml">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#

<http://bob.example.com/#offer> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/goodrelations/v1#Offering> <http://bob.example.com/> .
_:node16dssb0gtx1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdf.data-vocabulary.org/#Review-aggregate> <http://bob.example.com/> .
<http://bob.example.com/#offer> <http://rdf.data-vocabulary.org/#hasReview> _:node16dssb0gtx1 <http://bob.example.com/> .
_:node16dssb0gtx1 <http://rdf.data-vocabulary.org/#rating> "4.4"@en <http://bob.example.com/> .
_:node16dssb0gtx1 <http://rdf.data-vocabulary.org/#count> "89"@en <http://bob.example.com/> .
_:node16dssb0gtx1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/#Review-aggregate> <http://bob.example.com/> .
<http://bob.example.com/#offer> <http://schema.org/#hasReview> _:node16dssb0gtx1 <http://bob.example.com/> .
_:node16dssb0gtx1 <http://schema.org/#rating> "4.4"@en <http://bob.example.com/> .
_:node16dssb0gtx1 <http://schema.org/#count> "89"@en <http://bob.example.com/> .
<http://www.heppnetz.de/rdfa4google/company.html#business> <http://purl.org/goodrelations/v1#offers> <http://bob.example.com/#offer> <http://bob.example.com/> .
<http://bob.example.com/#offer> <http://purl.org/goodrelations/v1#name> "Canon Rebel T2i (EOS 550D)"@en <http://bob.example.com/> .
<http://bob.example.com/#offer> <http://purl.org/goodrelations/v1#description> "The Rebel T2i EOS 550D is Canon's top-of-the-line digital SLR camera."@en <http://bob.example.com/> .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
xmlns:gr="http://purl.org/goodrelations/v1#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:review="http://purl.org/stuff/rev#"
xmlns:v="http://rdf.data-vocabulary.org/#">
xmlns:v="http://schema.org/#">

<h1>Canon Offer</h1>
<span about="#offer" typeof="gr:Offering">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<p><strong>Expected behavior in Google Rich Snippets:</strong> RENDER, SHOULD VALIDATE (ignore additional content)</p>
<p>This page contains several additional elements from GoodRelations and uses proper RDFa datatyping. It should be as valid as the official rich snippets example.</p>

<div prefix="foaf: http://xmlns.com/foaf/0.1/ gr: http://purl.org/goodrelations/v1# xsd: http://www.w3.org/2001/XMLSchema# review: http://purl.org/stuff/rev# v: http://rdf.data-vocabulary.org/#">
<div prefix="foaf: http://xmlns.com/foaf/0.1/ gr: http://purl.org/goodrelations/v1# xsd: http://www.w3.org/2001/XMLSchema# review: http://purl.org/stuff/rev# v: http://schema.org/#">

<h1>Canon Offer</h1>
<span about="#offer" typeof="gr:Offering">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# limitations under the License.
#

_:node3e103839c5eaa86c975e26a96157bf2 <http://rdf.data-vocabulary.org/name> "Jazz Band" <http://bob.example.com/> .
_:node3e103839c5eaa86c975e26a96157bf2 <http://rdf.data-vocabulary.org/size> "12" <http://bob.example.com/> .
_:node70664686c06639b5211a24a9cf34f99 <http://rdf.data-vocabulary.org/band> _:node3e103839c5eaa86c975e26a96157bf2 <http://bob.example.com/> .
_:node70664686c06639b5211a24a9cf34f99 <http://rdf.data-vocabulary.org/name> "Amanda" <http://bob.example.com/> .
_:node3e103839c5eaa86c975e26a96157bf2 <http://schema.org/name> "Jazz Band" <http://bob.example.com/> .
_:node3e103839c5eaa86c975e26a96157bf2 <http://schema.org/size> "12" <http://bob.example.com/> .
_:node70664686c06639b5211a24a9cf34f99 <http://schema.org/band> _:node3e103839c5eaa86c975e26a96157bf2 <http://bob.example.com/> .
_:node70664686c06639b5211a24a9cf34f99 <http://schema.org/name> "Amanda" <http://bob.example.com/> .
<http://bob.example.com/> <http://www.w3.org/1999/xhtml/microdata#item> _:node70664686c06639b5211a24a9cf34f99 <http://bob.example.com/> .
_:nodea2c65a1b5a43d4ac4bd93b3216f5f7d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Movie> <http://bob.example.com/> .
_:nodea2c65a1b5a43d4ac4bd93b3216f5f7d <http://schema.org/Movie/name> "Avatar" <http://bob.example.com/> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xml:lang="en" version="XHTML+RDFa 1.0" xmlns:ni="http://iptc.org/std/nar/2006-10-01/" xmlns:okkam="http://models.okkam.org/ENS-core-vocabulary.owl#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:ansa="http://bdm.ansa.it/NewsML-G2/ns/content" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:v="http://rdf.data-vocabulary.org/#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ninitf="http://iptc.org/std/NITF/2006-10-18/" xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xml:lang="en" version="XHTML+RDFa 1.0" xmlns:ni="http://iptc.org/std/nar/2006-10-01/" xmlns:okkam="http://models.okkam.org/ENS-core-vocabulary.owl#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:ansa="http://bdm.ansa.it/NewsML-G2/ns/content" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:v="http://schema.org/#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ninitf="http://iptc.org/std/NITF/2006-10-18/" xmlns="http://www.w3.org/1999/xhtml">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
Expand Down