You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by le...@apache.org on 2015/01/23 07:14:28 UTC
[1/2] any23 git commit: ANY23-131 Nested Microdata are not extracted
Repository: any23
Updated Branches:
refs/heads/master 7ece1adf2 -> 403a8631e
ANY23-131 Nested Microdata are not extracted
Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/19abecc5
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/19abecc5
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/19abecc5
Branch: refs/heads/master
Commit: 19abecc58c064cd388d3dcfe29ac90f1b7750ae0
Parents: 7ece1ad
Author: Lewis John McGibbney <le...@jpl.nasa.gov>
Authored: Thu Jan 22 20:37:04 2015 -0800
Committer: Lewis John McGibbney <le...@jpl.nasa.gov>
Committed: Thu Jan 22 20:37:04 2015 -0800
----------------------------------------------------------------------
.../org/apache/any23/extractor/microdata/MicrodataParser.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/any23/blob/19abecc5/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java b/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java
index 42f5f89..1bcacf6 100644
--- a/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java
+++ b/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java
@@ -164,7 +164,9 @@ public class MicrodataParser {
topLevelItemScopes.add(itemScope);
}
}
- return getUnnestedNodes( topLevelItemScopes );
+ // ANY23-131 Nested Microdata are not extracted
+ //return getUnnestedNodes( topLevelItemScopes );
+ return topLevelItemScopes;
}
/**
[2/2] any23 git commit: ANY23-246 Add Open Graph Protocol and
Facebook prefixes to popular.prefixes
Posted by le...@apache.org.
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 <le...@jpl.nasa.gov>
Authored: Thu Jan 22 22:06:47 2015 -0800
Committer: Lewis John McGibbney <le...@jpl.nasa.gov>
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",