summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/textanalysis
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/conformance-checkers/html-its/textanalysis
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/textanalysis')
-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
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml15
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml9
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml17
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml6
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml14
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml8
19 files changed, 215 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>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml
new file mode 100644
index 0000000000..0aa9803ac3
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<text>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taClassRefPointer="@classref"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml
new file mode 100644
index 0000000000..74ffc81194
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<text>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis2xmlrules.xml"/>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml
new file mode 100644
index 0000000000..eb25afba0c
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml
@@ -0,0 +1,9 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taClassRefPointer="@classref"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml
new file mode 100644
index 0000000000..108061ce8a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<text>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:param name="taCityParam">dublin</its:param>
+ <its:param name="taCapitalParam">capital</its:param>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taClassRefPointer="@classref"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml
new file mode 100644
index 0000000000..e90c6c33fc
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<text>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis4xmlrules.xml"/>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml
new file mode 100644
index 0000000000..1a437e6cd1
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml
@@ -0,0 +1,11 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:param name="taCityParam">dublin</its:param>
+ <its:param name="taCapitalParam">capital</its:param>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taClassRefPointer="@classref"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml
new file mode 100644
index 0000000000..b570404cb0
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" its:annotatorsRef="text-analysis|http://enrycher.ijs.si">
+ <body>
+ <p><span its:taClassRef="http://nerd.eurecom.fr/ontology#Location" its:taIdentRef="http://dbpedia.org/resource/Dublin" its:taConfidence="0.7">Dublin</span> is the <span its:taSource="Wordnet3.0" its:taIdent="301467919" its:taConfidence="0.5">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml
new file mode 100644
index 0000000000..1ffc651698
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" its:annotatorsRef="text-analysis|http://enrycher.ijs.si">
+ <body>
+ <p><its:span taClassRef="http://nerd.eurecom.fr/ontology#Location" taIdentRef="http://dbpedia.org/resource/Dublin" taConfidence="0.7"
+>Dublin</its:span> is the <its:span taSource="Wordnet3.0" taIdent="301467919" taConfidence="0.5">capital</its:span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml
new file mode 100644
index 0000000000..f69754392f
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<text>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" identref="http://dbpedia.org/resource/Dublin" id="dublin">Dublin</span> is the <span source="Wordnet3.0" ident="301467919" id="capital">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml
new file mode 100644
index 0000000000..563d4fac05
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<text>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis8xmlrules.xml"/>
+ <body>
+ <p><span classref="http://nerd.eurecom.fr/ontology#Location" identref="http://dbpedia.org/resource/Dublin" id="dublin">Dublin</span> is the <span source="Wordnet3.0" ident="301467919" id="capital">capital</span> of Ireland.</p>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml
new file mode 100644
index 0000000000..05894fcaaf
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml
@@ -0,0 +1,8 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']"
+ taClassRefPointer="@classref"
+ taIdentRefPointer="@identref"/>
+ <its:textAnalysisRule selector="/text/body/p/*[@id='capital']"
+ taSourcePointer="@source"
+ taIdentPointer="@ident"/>
+ </its:rules>