summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html12
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml9
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html12
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html15
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html20
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html23
8 files changed, 107 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html
new file mode 100644
index 0000000000..9ab549092a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <link href="textanalysis1htmlrules.xml" rel="its-rules">
+ <title>Text Analysis: Local Test</title>
+ </head>
+ <body>
+ <p>
+ <span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml
new file mode 100644
index 0000000000..c6245b71e1
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml
@@ -0,0 +1,9 @@
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='dublin']"
+ taClassRefPointer="@typeof"
+ taIdentRefPointer="@property"/>
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='capital']"
+ taClassRefPointer="@typeof"
+ taSourcePointer="@property"
+ taIdentPointer="@about"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html
new file mode 100644
index 0000000000..f6cbe72cc6
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <link href="textanalysis2htmlrules.xml" rel="its-rules">
+ <title>Text Analysis: Local Test</title>
+ </head>
+ <body>
+ <p>
+ <span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml
new file mode 100644
index 0000000000..c5601a9ed7
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml
@@ -0,0 +1,11 @@
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="taCityParam">dublin</its:param>
+ <its:param name="taCapitalParam">capital</its:param>
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCityParam]"
+ taClassRefPointer="@typeof"
+ taIdentRefPointer="@property"/>
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCapitalParam]"
+ taClassRefPointer="@typeof"
+ taSourcePointer="@property"
+ taIdentPointer="@about"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html
new file mode 100644
index 0000000000..bf5e466578
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang=en>
+ <head>
+ <meta charset=utf-8>
+ <link href="textanalysis3htmlrules.xml" rel=its-rules>
+ <title>Text Analysis: Local Test</title>
+ </head>
+ <body>
+ <p><span id="dublin" property="http://xmlns.com/foaf/0.1/name"
+ about="http://dbpedia.org/resource/Dublin"
+ typeof="http://nerd.eurecom.fr/ontology#Location">Dublin</span> is
+ the <span id="capital">capital</span> of Ireland.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml
new file mode 100644
index 0000000000..d88271f30c
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml
@@ -0,0 +1,5 @@
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='dublin']"
+ taClassRefPointer="@typeof"
+ taIdentRefPointer="@about"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html
new file mode 100644
index 0000000000..42ff1d37b5
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en" its-annotators-ref="text-analysis|http://enrycher.ijs.si">
+ <head>
+ <meta charset=utf-8>
+ <title>Text Analysis: Local Test</title>
+ </head>
+ <body>
+ <p><span
+ its-ta-confidence="0.7"
+ its-ta-class-ref="http://nerd.eurecom.fr/ontology#Location"
+ its-ta-ident-ref="http://dbpedia.org/resource/Dublin"
+ >Dublin</span>
+ is the <span
+ its-ta-source="Wordnet3.0"
+ its-ta-ident="301467919"
+ its-ta-confidence="0.5"
+ >capital</span> of Ireland.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html
new file mode 100644
index 0000000000..8f673df4ce
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <script type="application/its+xml">
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="taCityParam">dublin</its:param>
+ <its:param name="taCapitalParam">capital</its:param>
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCityParam]"
+ taClassRefPointer="@typeof"
+ taIdentRefPointer="@property"/>
+ <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCapitalParam]"
+ taClassRefPointer="@typeof"
+ taSourcePointer="@property"
+ taIdentPointer="@about"/>
+ </its:rules>
+ </script>
+ <meta charset=utf-8>
+ <title>Textanalysis: Local Test</title>
+ </head>
+ <body>
+ <p><span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p>
+ </body>
+</html>