ANY23-246 Add Open Graph Protocol and Facebook prefixes to popular.prefixes


Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/403a8631
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/403a8631
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/403a8631

Branch: refs/heads/master
Commit: 403a8631ed7e9fd4f15968eb94ab736157e72d8f
Parents: 19abecc
Author: Lewis John McGibbney <[email protected]>
Authored: Thu Jan 22 22:06:47 2015 -0800
Committer: Lewis John McGibbney <[email protected]>
Committed: Thu Jan 22 22:06:47 2015 -0800

----------------------------------------------------------------------
 api/src/main/resources/default-configuration.properties          | 4 ++--
 .../main/resources/org/apache/any23/prefixes/prefixes.properties | 4 +++-
 core/src/test/java/org/apache/any23/Any23Test.java               | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/403a8631/api/src/main/resources/default-configuration.properties
----------------------------------------------------------------------
diff --git a/api/src/main/resources/default-configuration.properties 
b/api/src/main/resources/default-configuration.properties
index abd5fed..21fda6f 100644
--- a/api/src/main/resources/default-configuration.properties
+++ b/api/src/main/resources/default-configuration.properties
@@ -67,8 +67,8 @@ any23.microdata.ns.default=http://rdf.data-vocabulary.org/
 # Allows to enable(on)/disable(off) the registration
 # of HTMLMetaExtractor.java to
 # ExtractionRegistry.java
-any23.extraction.head.meta=off
+any23.extraction.head.meta=on
 
 # Allows to specify a CSV file separator and comment delimeter
 any23.extraction.csv.field=,
-any23.extraction.csv.comment=#
\ No newline at end of file
+any23.extraction.csv.comment=#

http://git-wip-us.apache.org/repos/asf/any23/blob/403a8631/core/src/main/resources/org/apache/any23/prefixes/prefixes.properties
----------------------------------------------------------------------
diff --git 
a/core/src/main/resources/org/apache/any23/prefixes/prefixes.properties 
b/core/src/main/resources/org/apache/any23/prefixes/prefixes.properties
index 543bedb..1151056 100644
--- a/core/src/main/resources/org/apache/any23/prefixes/prefixes.properties
+++ b/core/src/main/resources/org/apache/any23/prefixes/prefixes.properties
@@ -20,7 +20,7 @@ rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#
 rdfs=http://www.w3.org/2000/01/rdf-schema#
 xhtml=http://www.w3.org/1999/xhtml/vocab#
 dcterms=http://purl.org/dc/terms/
-foaf=http://xmlns.com/foaf/0.1/
+foaf=http://xmlns.com/foaf/spec/
 geo=http://www.w3.org/2003/01/geo/wgs84_pos#
 xfn=http://vocab.sindice.com/xfn#
 vcard=http://www.w3.org/2006/vcard/ns#
@@ -33,3 +33,5 @@ wo=http://purl.org/ontology/wo/
 skos=http://www.w3.org/2004/02/skos/core#
 hrecipe=http://sindice.com/hrecipe/
 sindice=http://vocab.sindice.net/
+og=http://opengraphprotocol.org/schema/
+fb=http://www.facebook.com/2008/fbml#

http://git-wip-us.apache.org/repos/asf/any23/blob/403a8631/core/src/test/java/org/apache/any23/Any23Test.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/any23/Any23Test.java 
b/core/src/test/java/org/apache/any23/Any23Test.java
index 7b66faa..24bc913 100644
--- a/core/src/test/java/org/apache/any23/Any23Test.java
+++ b/core/src/test/java/org/apache/any23/Any23Test.java
@@ -327,7 +327,7 @@ public class Any23Test extends Any23OnlineTestBase {
         // ?doc <http://www.w3.org/1999/xhtml/vocab#icon> 
<https://any23.googlecode.com/favicon.ico> .
         // ?doc <http://www.w3.org/1999/xhtml/vocab#stylesheet> 
<https://any23.googlecode.com/design/style.css>  .
 
-        final int EXPECTED_TRIPLES = 9;
+        final int EXPECTED_TRIPLES = 12;
         Any23 runner = new Any23();
         DocumentSource source = getDocumentSourceFromResource(
                 "/org/apache/any23/validator/missing-og-namespace.html",

Reply via email to