- From: CVS User jkosek <cvsmail@w3.org>
- Date: Wed, 26 Dec 2012 18:21:13 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas In directory gil:/tmp/cvs-serv2271 Modified Files: its20-html5.rnc Added Files: its20-html5-types.rnc Log Message: Updated HTML5 schema fragments, fully working master schema is part of validator.nu --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-html5.rnc 2012/11/27 11:34:11 1.2 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-html5.rnc 2012/12/26 18:21:13 1.3 @@ -1,4 +1,25 @@ -include "its20-types.rnc" +# Copyright (c) 2012 Jirka Kosek <jirka@kosek.cz> +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +include "its20-html5-types.rnc" its-attribute.locNote.html = attribute its-loc-note { its-locNote.type } @@ -12,22 +33,52 @@ its-attribute.termConfidence.html = attribute its-term-confidence { its-termConfidence.type } -its-attribute-withinText.html = attribute its-within-text { its-withinText.type } +its-attribute.withinText.html = attribute its-within-text { its-withinText.type } its-attribute.domainMapping.html = attribute its-domain-mapping { its-domainMapping.type } -its-attribute.entityTypeSourceRef.html = attribute its-entity-type-source-ref { its-entityTypeSourceRef.type } +its-attribute.disambigGranularity.html = attribute its-disambig-granularity { its-disambigGranularity.type } -its-attribute.entityTypeRef.html = attribute its-entity-type-ref { its-entityTypeRef.type } +its-attribute.disambigConfidence.html = attribute its-disambig-confidence { its-disambigConfidence.type } -its-attribute.disambigType.html = attribute its-disambig-type { its-disambigType.type } +its-attribute.disambigClassRef.html = attribute its-disambig-class-ref { its-disambigClassRef.type } -its-attribute.disambigSourceRef.html = attribute its-disambig-source-ref { its-disambigSourceRef.type } +its-attribute.disambigIdent.html = attribute its-disambig-ident { its-disambigIdent.type } its-attribute.disambigIdentRef.html = attribute its-disambig-ident-ref { its-disambigIdentRef.type } +its-attribute.disambigSource.html = attribute its-disambig-source { its-disambigSource.type } + its-attribute.localeFilterList.html = attribute its-locale-filter-list { its-localeFilterList.type } +its-attribute.person.html = attribute its-person { its-person.type } + +its-attribute.personRef.html = attribute its-person-ref { its-personRef.type } + +its-attribute.org.html = attribute its-org { its-org.type } + +its-attribute.orgRef.html = attribute its-org-ref { its-orgRef.type } + +its-attribute.tool.html = attribute its-tool { its-tool.type } + +its-attribute.toolRef.html = attribute its-tool-ref { its-toolRef.type } + +its-attribute.revPerson.html = attribute its-rev-person { its-revPerson.type } + +its-attribute.revPersonRef.html = attribute its-rev-person-ref { its-revPersonRef.type } + +its-attribute.revOrg.html = attribute its-rev-org { its-revOrg.type } + +its-attribute.revOrgRef.html = attribute its-rev-org-ref { its-revOrgRef.type } + +its-attribute.revTool.html = attribute its-rev-tool { its-revTool.type } + +its-attribute.revToolRef.html = attribute its-rev-tool-ref { its-revToolRef.type } + +its-attribute.provRef.html = attribute its-prov-ref { its-provRef.type } + +its-attribute.provenanceRecordsRef.html = attribute its-provenance-records-ref { its-provenanceRecordsRef.type } + its-attribute.locQualityIssuesRef.html = attribute its-loc-quality-issues-ref { its-locQualityIssuesRef.type } its-attribute.locQualityIssueType.html = attribute its-loc-quality-issue-type { its-locQualityIssueType.type } @@ -38,13 +89,19 @@ its-attribute.locQualityIssueProfileRef.html = attribute its-loc-quality-issue-profile-ref { its-locQualityIssueProfileRef.type } -its-attribute.locQualityPrecisScore.html = attribute its-loc-quality-precis-score { its-locQualityPrecisScore.type } +its-attribute.locQualityIssueEnabled.html = attribute its-loc-quality-issue-enabled { its-locQualityIssueEnabled.type } + +its-attribute.locQualityRatingScore.html = attribute its-loc-quality-rating-score { its-locQualityRatingScore.type } + +its-attribute.locQualityRatingVote.html = attribute its-loc-quality-rating-vote { its-locQualityRatingVote.type } -its-attribute.locQualityPrecisVote.html = attribute its-loc-quality-prcecis-vote { its-locQualityPrecisVote.type } +its-attribute.locQualityRatingScoreThreshold.html = attribute its-loc-quality-rating-score-threshold { its-locQualityRatingScoreThreshold.type } -its-attribute.locQualityPrecisThreshold.html = attribute its-loc-quality-precis-threshold { its-locQualityPrecisThreshold.type } +its-attribute.locQualityRatingVoteThreshold.html = attribute its-loc-quality-rating-vote-threshold { its-locQualityRatingVoteThreshold.type } -its-attribute.locQualityPrecisProfileRef.html = attribute its-loc-quality-precis-profile-ref { its-locQualityPrecisProfileRef.type } +its-attribute.locQualityRatingProfileRef.html = attribute its-loc-quality-rating-profile-ref { its-locQualityRatingProfileRef.type } + +its-attribute.mtConfidence.html = attribute its-mt-confidence { its-mtConfidence.type } its-attribute.allowedCharacters.html = attribute its-allowed-characters { its-allowedCharacters.type } @@ -52,27 +109,36 @@ its-attribute.storageEncoding.html = attribute its-storage-encoding { its-storageEncoding.type } -its-attribute.toolsRef.html = attribute its-tools-ref { its-toolsRef.type } +its-attribute.lineBreakType.html = attribute its-line-break-type { its-lineBreakType.type } + +its-attribute.annotatorsRef.html = attribute its-annotators-ref { its-annotatorsRef.type } its-html-attributes = ((its-attribute.locNote.html | its-attribute.locNoteRef.html), its-attribute.locNoteType.html?)? & (its-attribute.term.html, its-attribute.termInfoRef.html?, its-attribute.termConfidence.html?)? & - its-attribute-withinText.html? & - its-attribute.entityTypeSourceRef.html? & - its-attribute.entityTypeRef.html? & - its-attribute.disambigType.html? & - its-attribute.disambigSourceRef.html? & - its-attribute.disambigIdentRef.html? & + its-attribute.withinText.html? & + its-attribute.disambigConfidence.html? & + its-attribute.disambigGranularity.html? & + its-attribute.disambigClassRef.html? & + ((its-attribute.disambigSource.html, its-attribute.disambigIdent.html) | its-attribute.disambigIdentRef.html)? & its-attribute.localeFilterList.html? & + (( + (its-attribute.person.html | its-attribute.personRef.html )? & + (its-attribute.org.html | its-attribute.orgRef.html )? & + (its-attribute.tool.html | its-attribute.toolRef.html )? & + (its-attribute.revPerson.html | its-attribute.revPersonRef.html )? & + (its-attribute.revOrg.html | its-attribute.revOrgRef.html )? & + (its-attribute.revTool.html | its-attribute.revToolRef.html )? & + its-attribute.provRef.html?) + | its-attribute.provenanceRecordsRef.html)? & (its-attribute.locQualityIssuesRef.html | - ((its-attribute.locQualityIssueType.html | its-attribute.locQualityIssueComment.html | (its-attribute.locQualityIssueType.html & its-attribute.locQualityIssueComment.html)) & - its-attribute.locQualityIssueSeverity.html? & - its-attribute.locQualityIssueProfileRef.html? - ) + (its-attribute.locQualityIssueType.html? & its-attribute.locQualityIssueComment.html? & its-attribute.locQualityIssueSeverity.html? & its-attribute.locQualityIssueProfileRef.html? & its-attribute.locQualityIssueEnabled.html?) )? & - ((its-attribute.locQualityPrecisScore.html | its-attribute.locQualityPrecisVote.html), its-attribute.locQualityPrecisThreshold.html?, its-attribute.locQualityPrecisProfileRef.html?)? & + (((its-attribute.locQualityRatingScore.html, its-attribute.locQualityRatingScoreThreshold.html?) | (its-attribute.locQualityRatingVote.html, its-attribute.locQualityRatingVoteThreshold.html?)), its-attribute.locQualityRatingProfileRef.html?)? & + its-attribute.mtConfidence.html? & its-attribute.allowedCharacters.html? & - (its-attribute.storageSize.html, its-attribute.storageEncoding.html?)? + (its-attribute.storageSize.html, its-attribute.storageEncoding.html?, its-attribute.lineBreakType.html?)? & + its-attribute.annotatorsRef.html? -# FIXME: RNC implementation of locQualityIssues element \ No newline at end of file +# FIXME: Find way how to validate stand-off markup inside <script> \ No newline at end of file --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-html5-types.rnc 2012/12/26 18:21:13 NONE +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-html5-types.rnc 2012/12/26 18:21:13 1.1 # Copyright (c) 2012 Jirka Kosek <jirka@kosek.cz> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. datatypes w = "http://whattf.org/datatype-draft" its-confidence.type = xsd:decimal { minInclusive = "0" maxInclusive = "1" } its-locNote.type = string ## The type of localization note its-locNoteType.type = ## Localization note is an alert w:string "alert" | ## Localization note is a description w:string "description" its-locNoteRef.type = w:iri-ref its-termInfoRef.type = w:iri-ref ## Indicates a term locally its-term.type = ## The value 'yes' means that this is a term w:string "yes" | ## The value 'no' means that this is not a term w:string "no" its-termConfidence.type = its-confidence.type ## States whether current context is regarded as "within text" its-withinText.type = ## The element and its content are part of the flow of its parent element w:string "yes" | ## The element splits the text flow of its parent element and its content is an independent text flow w:string "no" | ## The element is part of the flow of its parent element, its content is an independent flow w:string "nested" ## A comma separated list of mappings between values in the content ## and workflow specific values. The values may contain spaces; in ## that case they MUST be delimited by quotation marks. its-domainMapping.type = string its-disambigGranularity.type = w:string "lexical-concept" | w:string "ontology-concept" | w:string "entity" its-disambigConfidence.type = its-confidence.type its-disambigClassRef.type = w:iri-ref its-disambigIdentRef.type = w:iri-ref its-disambigIdent.type = string its-disambigSource.type = string its-localeFilterList.type = string its-person.type = string its-personRef.type = w:iri-ref its-org.type = string its-orgRef.type = w:iri-ref its-tool.type = string its-toolRef.type = w:iri-ref its-revPerson.type = string its-revPersonRef.type = w:iri-ref its-revOrg.type = string its-revOrgRef.type = w:iri-ref its-revTool.type = string its-revToolRef.type = w:iri-ref its-provRef.type = list { w:iri-ref+ } its-provenanceRecordsRef.type = w:iri-ref its-idValue.type = string its-space.type = "default" | "preserve" its-locQualityIssuesRef.type = w:iri-ref its-locQualityIssueType.type = w:string "terminology" | w:string "mistranslation" | w:string "omission" | w:string "untranslated" | w:string "addition" | w:string "duplication" | w:string "inconsistency" | w:string "grammar" | w:string "legal" | w:string "register" | w:string "locale-specific-content" | w:string "locale-violation" | w:string "style" | w:string "characters" | w:string "misspelling" | w:string "typographical" | w:string "formatting" | w:string "inconsistent-entities" | w:string "numbers" | w:string "markup" | w:string "pattern-problem" | w:string "whitespace" | w:string "internationalization" | w:string "length" | w:string "uncategorized" | w:string "other" its-locQualityIssueComment.type = string its-locQualityIssueSeverity.type = xsd:decimal { minInclusive = "0" maxInclusive = "100" } its-locQualityIssueProfileRef.type = w:iri-ref its-locQualityIssueEnabled.type = w:string "yes" | w:string "no" its-locQualityRatingScore.type = xsd:decimal { minInclusive = "0" maxInclusive = "100" } its-locQualityRatingVote.type = xsd:integer its-locQualityRatingScoreThreshold.type = xsd:decimal { minInclusive = "0" maxInclusive = "100" } its-locQualityRatingVoteThreshold.type = xsd:integer its-locQualityRatingProfileRef.type = w:iri-ref its-mtConfidence.type = its-confidence.type its-allowedCharacters.type = string its-storageSize.type = xsd:nonNegativeInteger its-storageEncoding.type = string its-lineBreakType.type = w:string "cr" | w:string "lr" | w:string "crlf" | w:string "nel" its-annotatorsRef.type = string
Received on Wednesday, 26 December 2012 18:21:15 UTC