From a3631de0e957424dab3cf1d0c1833017d7ccc6fc Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Fri, 19 Feb 2016 11:16:12 -0800 Subject: [PATCH] ANY23-274 Change any23.microdata.ns.default configuration value to http://schema.org --- .../main/resources/default-configuration.properties | 2 +- .../apache/any23/extractor/rdfa/example-rdfa11.html | 10 +++++----- .../any23/extractor/ExtractionParametersTest.java | 2 +- src/site/apt/configuration.apt | 2 +- .../application/xhtml/blank-file-header.xhtml | 2 +- .../resources/html/rdfa/ansa_2010-02-26_12645863.html | 2 +- .../html/rdfa/goodrelations-rdfa10-expected.nq | 8 ++++---- .../test/resources/html/rdfa/goodrelations-rdfa10.html | 2 +- .../test/resources/html/rdfa/goodrelations-rdfa11.html | 2 +- .../microdata/microdata-nested-expected.nquads | 8 ++++---- .../org/apache/any23/validator/invalid-rdfa-about.html | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/api/src/main/resources/default-configuration.properties b/api/src/main/resources/default-configuration.properties index 21fda6f73..ed0c7ca83 100644 --- a/api/src/main/resources/default-configuration.properties +++ b/api/src/main/resources/default-configuration.properties @@ -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 diff --git a/core/src/main/resources/org/apache/any23/extractor/rdfa/example-rdfa11.html b/core/src/main/resources/org/apache/any23/extractor/rdfa/example-rdfa11.html index b559c24da..f6504a415 100644 --- a/core/src/main/resources/org/apache/any23/extractor/rdfa/example-rdfa11.html +++ b/core/src/main/resources/org/apache/any23/extractor/rdfa/example-rdfa11.html @@ -14,15 +14,15 @@ See the License for the specific language governing permissions and limitations under the License. --> -
+
L’Amourita Pizza Reviewed by - Ulysses Grant on - Jan 6. + Ulysses Grant on + Jan 6. Delicious, tasty pizza on Eastlake! - L'Amourita serves up traditional wood-fired + L'Amourita serves up traditional wood-fired Neapolitan-style pizza, brought to your table promptly and without fuss. An ideal neighborhood pizza joint. Rating: - 4.5 + 4.5
\ No newline at end of file diff --git a/core/src/test/java/org/apache/any23/extractor/ExtractionParametersTest.java b/core/src/test/java/org/apache/any23/extractor/ExtractionParametersTest.java index 507d29ee7..eabbb88ff 100644 --- a/core/src/test/java/org/apache/any23/extractor/ExtractionParametersTest.java +++ b/core/src/test/java/org/apache/any23/extractor/ExtractionParametersTest.java @@ -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") ); } diff --git a/src/site/apt/configuration.apt b/src/site/apt/configuration.apt index 7685cdf3b..a6b532db6 100644 --- a/src/site/apt/configuration.apt +++ b/src/site/apt/configuration.apt @@ -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. | *-------------------------------------------+-------------------------------+------------------------------------------------------------------------------------+ diff --git a/test-resources/src/test/resources/application/xhtml/blank-file-header.xhtml b/test-resources/src/test/resources/application/xhtml/blank-file-header.xhtml index c619624b4..ef24fef79 100644 --- a/test-resources/src/test/resources/application/xhtml/blank-file-header.xhtml +++ b/test-resources/src/test/resources/application/xhtml/blank-file-header.xhtml @@ -1292,7 +1292,7 @@ document.write(' -
+
diff --git a/test-resources/src/test/resources/html/rdfa/ansa_2010-02-26_12645863.html b/test-resources/src/test/resources/html/rdfa/ansa_2010-02-26_12645863.html index 39244798e..edcb03c9b 100644 --- a/test-resources/src/test/resources/html/rdfa/ansa_2010-02-26_12645863.html +++ b/test-resources/src/test/resources/html/rdfa/ansa_2010-02-26_12645863.html @@ -1,4 +1,4 @@ - +