ã注æã ãã®ããã¥ã¡ã³ãã¯ãW3Cã®rdf:PlainLiteral: A Datatype for RDF Plain Literals (Second Edition) W3C Recommendation 11 December 2012ã®å訳ã§ãã
ãã®ããã¥ã¡ã³ãã®æ£å¼çã¯W3Cã®ãµã¤ãä¸ã«ããè±èªçã§ããããã®ããã¥ã¡ã³ãã«ã¯ç¿»è¨³ã«èµ·å ãã誤ãããããã¾ãã誤訳ã誤æ¤ãªã©ã®ãææã¯ã訳è
ã¾ã§ãé¡ãè´ãã¾ãã
First Update: 2014å¹´7æ18æ¥
ãã®ããã¥ã¡ã³ãã«å¯¾ããæ£èª¤è¡¨ãåç §ãã¦ãã ãããããã¤ãã®è¦ç¯çãªä¿®æ£ãå«ã¾ãã¦ããããããã¾ããã
ãã®ããã¥ã¡ã³ãã®æ§ãã¼ã¸ã§ã³ä»¥å¾ã®å¤æ´ã示ããè²åããããã¼ã¸ã§ã³ãå©ç¨ã§ãã¾ãã
ãã®ããã¥ã¡ã³ãã¯ãè¦ç¯ä»¥å¤ã®å½¢å¼ã§ãå ¥æã§ãã¾ã: PDFãã¼ã¸ã§ã³ã
翻訳çãåç §ãã¦ãã ããã
Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
ãã®é ã¯ããã®ããã¥ã¡ã³ãã®å ¬éæã®ã¹ãã¼ã¿ã¹ã«ã¤ãã¦è¨è¿°ãã¦ãã¾ããä»ã®ããã¥ã¡ã³ãããã®ããã¥ã¡ã³ãã«åã£ã¦ä»£ãããã¨ããããã¾ããç¾è¡ã®W3Cã®åè¡ç©ããã³ãã®æè¡å ±åã®ææ°ã®æ¹è¨çã®ãªã¹ãã¯ãhttp://www.w3.org/TR/ã®W3Cæè¡å ±åã¤ã³ããã¯ã¹ã«ããã¾ãã
[email protected]ï¼å ¬éã¢ã¼ã«ã¤ãï¼ã«ã³ã¡ã³ãããéããã ããããã®ããã¥ã¡ã³ãã«å¯¾ããOWLã¯ã¼ãã³ã°ã°ã«ã¼ãã¨ã«ã¼ã«è¨è¿°äº¤æå½¢å¼ï¼RIFï¼ã¯ã¼ãã³ã°ã°ã«ã¼ãã®ä½æ¥ã¯å®äºãã¦ãã¾ãããã³ã¡ã³ãã¯æ£èª¤è¡¨ãä»å¾ã®æ¹å®ã§æ±ããããã¨ãããã¾ããéçºè éã®å ¬éè¨è«ã¯ã[email protected]ï¼å ¬éã¢ã¼ã«ã¤ãï¼ã§æè¿ãã¾ãã
ãã®ããã¥ã¡ã³ãã¯ãW3Cã¡ã³ãã¼ãã½ããã¦ã§ã¢éçºè ãä»ã®W3Cã°ã«ã¼ããããã³ä»ã®å©å®³é¢ä¿è ã«ããã¬ãã¥ã¼ãããW3Cå§åã¨ãã¦ç®¡çè ã®åè³ãå¾ã¾ãããããã¯ç¢ºå®æ¸ã¿ããã¥ã¡ã³ãã§ãããåèè³æã¨ãã¦ç¨ããããå¥ã®ããã¥ã¡ã³ãã§å¼ç¨ãããã¨ãã§ãã¾ããå§åã®ä½æã«ãããW3Cã®å½¹å²ã¯ãä»æ§ã«æ³¨æãå¼ãä»ããåºç¯å²ãªéçºãä¿é²ãããã¨ã§ããããã«ãã£ã¦ã¦ã§ãã®æ©è½æ§ããã³ç¸äºéç¨æ§ãå¢å¼·ããã¾ãã
ãã®ããã¥ã¡ã³ãã¯ã2004å¹´2æ5æ¥ã®W3Cç¹è¨±æ¹éã®ä¸ã§æ´»åãã¦ããã°ã«ã¼ãã«ãã£ã¦ä½æããã¾ããããã®ããã¥ã¡ã³ãã«ã¯ãåèæ å ±ã®ã¿ãå«ã¾ãã¦ãã¾ããW3Cã¯ããã®ã°ã«ã¼ãã®ææç©ã«é¢é£ããããããç¹è¨±ã®é示ã®å ¬éãªã¹ããç¶æãããã®ãã¼ã¸ã«ã¯ç¹è¨±ã®é示ã«é¢ããæ示ãå«ã¾ãã¦ãã¾ãã
RDFï¼Resource Description Frameworkï¼[RDF]ã¯ãXMLã¹ãã¼ãã»ãã¼ã¿å[XSD]ã«åºã¥ãæ¡å¼µå¯è½ãªåä»ããªãã©ã«ã®ä½ç³»ãæãã¦ããããã¬ã¼ã³ã»ãªãã©ã«ãæããã¨å®ç¾©ããã¦ãã¾ããRDFã®ä»æ§ã§ã¯ããã¬ã¼ã³ã»ãªãã©ã«ã¯ããã¬ã¼ã³ã»ãªãã©ã«ã«ã¯ãã¼ã¿åããªãããªãã·ã§ã³ã§è¨èªã¿ã°ãæã¤ãã¨ãã§ããå 容ã®èªç¶è¨èªã示ãã¨ããç¹ã§åä»ããªãã©ã«ã¨ç°ãªãã¾ããï¼è¨èªèå¥ç¨ã¿ã°[BCP 47]ãåç §ï¼ãRDFãªãã©ã«ã®è¡¨ç¾ã«é¢ãããããã®ãªãã·ã§ã³ã«ãããRIFãOWLãªã©ã®RDFã¨ç¸äºä½ç¨ããä»æ§ãè¤éã«ãªãã¾ããããã«ãRDFã¯ãã¹ã¦ã®ãã¬ã¼ã³ã»ãªãã©ã«ã®éåã«ååãæä¾ããããã®ãããä¾ãã°ãRDFSãOWLã§ã¯ãããããããã£ã¼ã®ç¯å²ããã¬ã¼ã³ã»ãªãã©ã«ã§ãªããã°ãªããªãã¨è¿°ã¹ããã¨ãã§ãã¾ããã
ãããåãã¦ããã®ä»æ§ã§ã¯ãrdf:PlainLiteralã¨ãããã¼ã¿åãå°å ¥ãã¾ããããã®ãã¼ã¿åã¯ãRDFã®æ¦å¿µã¢ãã«ã®ä¸é¨ãåç §ããããããrdf:ãã®åå空éã«ããã¾ãããããããã®æ¡å¼µã¯ãã®æ¦å¿µã¢ãã«ãå¤æ´ããªããããããã«ä¾åããSPARQL[SPARQL]ãªã©ã®ä»æ§ã«å½±é¿ãä¸ãã¾ãããrdf:PlainLiteralã®å¤ç©ºéã¯ãRDFãã¬ã¼ã³ã»ãªãã©ã«ã§è¡¨ããããã¹ã¦ã®ãã¼ã¿å¤ããæããããã«ãããRDFã¢ããªã±ã¼ã·ã§ã³ããã®éåãæ示çã«åç §ï¼ä¾ãã°ãrdfs:rangeè¨æã§ï¼ã§ããããã«ãªãã¾ãã
RDFã®ãã¬ã¼ã³ã»ãªãã©ã«ã¯æ¢ã«RDFã¨SPARQLã®æ§æã®ä¸é¨ã§ãããããrdf:PlainLiteralãªãã©ã«ã¯ãRDFã¨SPARQLã®æ§æã§ã¯RDFãã¬ã¼ã³ã»ãªãã©ã«ã¨ãã¦è¨è¿°ããã¾ãã
ãã®ãã¼ã¿åã¯ããã¬ã¼ã³ã»ãªãã©ã«ã¨åæ§ã«ãè¨èªã¿ã°ãUnicodeæååã«é¢é£ä»ãããã¨ãã§ãã¾ãããèªç¶è¨èªã«ããçºè¨ã®è¡¨ç¾ã«ã¯ãã®æ©è½ãæä¾ãã¾ããããããã®ãªãã©ã«å ã§ã¯ãä»ã®ãã¹ã¦ã®Unicodeæåã¨åãããã«ãUnicodeã®åæ¹åå¶å¾¡æå[BIDI]ã使ç¨ã§ãã¾ããï¼ããè±ããªãXHTML[XHTML]ãã«ãã»ã¢ããã¼ã·ã§ã³[RUBY]ãªã©ã®XMLã«åºã¥ã表ç¾ã¯ãrdf:XMLLiteralãã¼ã¿åãç¨ãã¦è¡¨ç¾ã§ãã¾ããï¼
æåã¯ããã¹ãã®åååä½ã§ããåã ã®æåã«ã¯ãXML[XML]ã®Charçæè¦åã¨ä¸è´ãã¦ããªããã°ãªããªãï¼MUSTï¼UCSï¼Universal Character Setï¼ã³ã¼ãã»ãã¤ã³ã[ISO/IEC 10646]ï¼Unicodeã³ã¼ãã»ãã¤ã³ã[UNICODE]ã¨åãï¼ããããããXMLã¹ãã¼ãã»ãã¼ã¿å[XML Schema Datatypes]ã¨ã®äºææ§ãä¿è¨¼ããã¾ãããã®ããã¥ã¡ã³ãã§ã¯ãU+ã®å¾ã«ã³ã¼ãã»ãã¤ã³ãã®4æ¡ã®16é²ã®å¤ãç½®ãã¦ã³ã¼ãã»ãã¤ã³ãã表ããã¨ãããã¾ãã
æååã¯ã0以ä¸ã®æåã®æéã·ã¼ã±ã³ã¹ã§ããæååã®é·ãã¯ããã®ä¸ã®æåã®æ°ã§ãããã®ä»æ§ã§ã¯ãæååã¯ããã«å¼ç¨ç¬¦ã§å²ãã§è¨è¿°ãã¦ãã¾ãã2ã¤ã®æååã¯ãå ¨ãåãé åºã§å ¨ãåãæåãå«ã¾ãã¦ããå ´åã«éããåä¸ã§ãã
UCS[ISO/IEC 10646]ã¨Unicode[UNICODE]ã¯ã1,114,112ã®ã³ã¼ãã»ãã¤ã³ããæä¾ãã¦ãã¾ããããããXML[XML]ã®Charçæè¦åã§ã¯ããµãã²ã¼ãã»ã³ã¼ãã»ãã¤ã³ãã¨U+FFFEã¨U+FFFFã®ã³ã¼ãã»ãã¤ã³ãã¯é¤å¤ããã¾ãããããã£ã¦ãrdf:PlainLiteralã¯ãåè¨1,112,033ã®æåãæä¾ãã¾ãããã®æ°ã¯ãOWL 2ãªã³ããã¸ã®å 足å¯è½æ§ã«å½±é¿ãä¸ããå¯è½æ§ããããããéè¦ã§ãã次ã®ä¾ã«ã¤ãã¦èãã¦ã¿ã¦ãã ããã
ClassAssertion( MinCardinality( n a:property DatatypeRestriction( xs:string xs:length 1 ) ) a:i ) |
ãã®OWL 2å ¬çã§ã¯ãåä½a:iã¯ããããã£ã¼a:propertyã«ãããå°ãªãã¨ãé·ãã1ã®ç°ãªãæåånã«æ¥ç¶ããã¦ããã¨è¨è¿°ããã¦ãã¾ãããã®æååã®æ°ã¯ãä¸è¨ã®å®ç¾©ã«ãã£ã¦1,112,033ã«å¶éããã¦ãããããnã1,112,033以ä¸ã§ããå ´åã«éãããã®ãªã³ããã¸ã¼ã¯æºè¶³ã§ãã¾ãã
è¨èªã¿ã°ã¯ãBCP 47[BCP 47]ã®langtagçæè¦åã¨ä¸è´ããæååã§ããããã«ããã®å®ç¾©ãBCP 47ã®æå¹ãªã¯ã©ã¹ã®é©åæ§ã§ã¯ãªããæ´å½¢å¼ã®ã¯ã©ã¹ã®é©åæ§ã«å¯¾å¿ãã¦ãããã¨ã«æ³¨æãã¦ãã ãããè¨èªã¿ã°ã«ã¯ãIANAè¨èªãµãã¿ã°ã»ã¬ã¸ã¹ããªï¼IANA Language Subtag Registryï¼ã«ç»é²ããã¦ããªããµãã¿ã°ãå«ããã¨ãã§ãã¾ãï¼MAYï¼ããrdf:PlainLiteralã®å®è£ ã§ã¯ããã®ãããªç¡å¹ãªè¨èªã¿ã°ãæ絶ãããã¨ãã§ãã¾ãï¼MAYï¼ã
è¨èªã¿ã°"en-fubar"ã¯ãIANAè¨èªãµãã¿ã°ã»ã¬ã¸ã¹ããªã«ç»é²ããã¦ããªããããrdf:PlainLiteralã®å®è£ ã§ã¯ãããæ絶ã§ãã¾ãããããããã®æååã¯ãBCP 47ã®langtagçæè¦åã¨ä¸è´ããããããã®ä»æ§ã®ç®çã«å¯¾ãã¦å®å ¨ã«æå¹ãªè¨èªã¿ã°ã§ãããããã£ã¦ãrdf:PlainLiteralã®å¤ç©ºéï¼å®ç¾©ã«é¢ãã¦ã¯3é ãåç §ï¼ã«ã¯ãä¾ãã°ã< "some string" , "en-fubar" >ã®å¯¾ãå«ã¾ãã¾ãã
ãã®ä»æ§ã§ã¯ããã¼ã¿åã¨ãã®æ§æè¦ç´ ãæå®ããããã«ãURIï¼Uniform Resource Identifierï¼ãç¨ãã¾ããããã«é¢ãã¦ã¯RFC 3986[RFC 3986]ã§å®ç¾©ããã¦ãã¾ããèªã¿ãããã®ããã«ãURIæ¥é è¾ã¯ãã°ãã°ãRDF[RDF]ã®è¦å®ã«å¾ããçãæ¥é è¾åãç¨ãã¦çç¥å½¢ã«ããã¾ãããã®ããã¥ã¡ã³ãã®å ¨ä½ã§ã次ã®æ¥é è¾åãç¨ãã¦ãã¾ãã
XMLåå空éä»æ§[XML Namespaces]ã§å®ç¾©ããã¦ããã¨ããã5é ã§å®ç¾©ããã¦ããçµè¾¼ã¿é¢æ°ã®ååã¯QNamesã§ãã5é ã§ã¯ã次ã®åå空éçç¥ãç¨ãã¦ãã¾ãã
pr:lnã¨ããå½¢å¼ã®è¡¨ç¾ãçç¥å½¢ã®URIã示ãã®ãQNameã示ãã®ãã¯ãæèããæããã§ããã¹ãã§ãã5é ã®çµè¾¼ã¿é¢æ°ã®ååã®ã¿ãQNamesã§ããããã®ä»ã®ãã®ãããªè¡¨ç¾ã¯ãã¹ã¦çç¥å½¢ã®URIã示ãã¾ãã
ãã®ããã¥ã¡ã³ãã§ã¯ããã¼ã¿åã¯ãXMLã¹ãã¼ãã»ãã¼ã¿å[XML Schema Datatypes]ã«æ²¿ã£ã¦å®ç¾©ããã¦ãã¾ããåã ã®ãã¼ã¿åã¯URIã§èå¥ããã次ã®æ§æè¦ç´ ã§è¨è¿°ããã¾ãã
ãã¬ã¼ã³ã»ãªãã©ã«ã¯ããªãã·ã§ã³ã§è¨èªã¿ã°[RDF]ãæã¤æååã§ããè¨èªã¿ã°ã®ãªããã¬ã¼ã³ã»ãªãã©ã«ã¯ãRDF解é[RDF Semantics]ã§åç¬ã§è§£éããã¾ããè¨èªã¿ã°ããããã¬ã¼ã³ã»ãªãã©ã«ã¯"abc"@langTagã¨æ¸ããã¨ãã§ããRDF解éã§ã¯< "abc" , "langTag" >ã®å¯¾ã¨ãã¦è§£éããã¾ãã
åä»ããªãã©ã«ã¯ãæååã¨ãã¼ã¿åURI[RDF]ã§æ§æããã"abc"^^datatypeURIã¨æ¸ããã¨ãã§ãã¾ããdatatypeURIã§èå¥ãããRDFãã¼ã¿åãä¸ããããã°ããã¼ã¿åãå«ãã§ããRDFãã¼ã¿åä»ã-解éã¯ãåä»ããªãã©ã«ãããã¼ã¿åãåå¥å½¢å¼"abc"ã«å²ãå½ã¦ããã¼ã¿å¤ã§ããã¨è§£éãã¾ãã
ã¤ã¿ãªãã¯ä½ã®ãã¼ã¯ã¼ãããããªããã°ãªããªãï¼MUSTï¼ããããã¦ã¯ãªããªãï¼MUST NOTï¼ããããã¹ãã§ããï¼ããå¿ è¦ãããï¼SHOULDï¼ããããã¹ãã§ãªãï¼ããå¿ è¦ããªãï¼SHOULD NOTï¼ãããã³ããããã¨ãã§ããï¼ãã¦ãããï¼MAYï¼ãã¯ããã®ä»æ§ãå®è£ ãããã¼ã«ã®è¦ç¯çåä½ã®ããå´é¢ãè¦å®ããRFC 2119[RFC 2119]ã§è¦å®ããã¦ããã¨ããã«è§£éããã¾ãã
http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteralã¨ããURIï¼çç¥å½¢ã¯rdf:PlainLiteralï¼ã§èå¥ããããã¼ã¿åã¯ã次ã®ããã«å®ç¾©ããã¦ãã¾ãã
å¤ç©ºéã 以ä¸ã§æ§æãããrdf:PlainLiteralã®å¤ç©ºé
åå¥ç©ºéã "abc"ãä»»æã®ï¼æãã空ã®ï¼æååã§ããã°ãrdf:PlainLiteralã®åå¥å½¢å¼ã¯ã"abc@langTag"ã¨ããå½¢å¼ã®æååã§ã"langTag"ã¯ç©ºã®æååãï¼å¿ ãããå°æåã§ã¯ãªãï¼è¨èªã¿ã°ã®ã©ã¡ããã§ãããã®ãããªåå¥å½¢å¼ã¯ã次ã®ããã«ãããããdvã¨ãããã¼ã¿å¤ã«ãããã³ã°ããã¾ãã
次ã®è¡¨ã¯ãããã¤ãã®rdf:PlainLiteralã®åå¥å½¢å¼ã¨ããããã«å¯¾å¿ãããã¼ã¿å¤ã示ãã¦ãã¾ãã
åå¥å½¢å¼ | 対å¿ãããã¼ã¿å¤ |
---|---|
"Family Guy@en" | < "Family Guy" , "en" > |
"Family Guy@EN" | < "Family Guy" , "en" > |
"Family Guy@FOX@en" | < "Family Guy@FOX" , "en" > |
"Family Guy@" | "Family Guy" |
"Family Guy@FOX@" | "Family Guy@FOX" |
次ã®è¡¨ã¯ãrdf:PlainLiteralã®åå¥å½¢å¼ã§ã¯ãªãããã¤ãã®æååã示ãã¦ãã¾ãã
æåå | rdf:PlainLiteralã®åå¥å½¢å¼ã§ã¯ãªãçç± |
---|---|
"Family Guy" | @ï¼U+0040ï¼ã¨ããæåãå°ãªãã¨ã1ã¤å«ã¾ãã¦ããªãã |
"Family Guy@12" | "12"ã¯BCP 47ã«å¾ã£ãè¨èªã¿ã°ã§ã¯ãªãã |
ãã¡ã»ãã空éã rdf:PlainLiteralã®ãã¡ã»ãã空éã¯ã表1ã§ç¤ºãã¦ããããã«å®ç¾©ããã¦ãã¾ãã
以ä¸ã®å ´åããã¡ã»ããã®å¯¾( F v )ã¯ãrdf:PlainLiteralã®ãã¡ã»ãã空éã«ããã¾ãã | ãã®ãã¡ã»ããã®å¯¾ã¯ããããã以ä¸ãå«ã¾ããrdf:PlainLiteralã®å¤ç©ºéã®ãµãã»ããã«ãããã³ã°ããã¾ãã |
---|---|
Fãxs:lengthã xs:minLengthã xs:maxLengthã xs:patternã xs:enumerationã¾ã㯠xs:assertionã§ããã( F v )ãxs:stringã®ãã¡ã»ãã空éã«ããã |
XMLã¹ãã¼ãã»ãã¼ã¿å[XML Schema Datatypes]ã§è¦å®ããã¦ããã¨ããã«( F v )ã§æ±ºå®ãããxs:stringã®å¤ç©ºéã®ãµãã»ããã«"abc"ãå«ã¾ãã¦ãããããªã"abc"ã¨ãããã¹ã¦ã®æååã¨< "abc" , "lc-langtag" >ã¨ããå½¢å¼ã®ãã¹ã¦ã®å¯¾ |
Fãrdf:langRangeã§ããã vã[RFC4647]ã®2.2é ã§è¦å®ãããã¨ããã®æ¡å¼µè¨èªç¯å²ã§ããã |
"lc-langtag"[RFC4647]ã®3.3.2é ã«è¦å®ããã¦ããã¨ããã«"lc-langtag"ãæ¡å¼µãã£ã«ã¿ãªã³ã°ä¸ã§vã¨ä¸è´ããã< "abc" , "lc-langtag" >ã¨ããå½¢å¼ã®ãã¹ã¦ã®å¯¾ |
xs:lengthã¨ãããã¡ã»ããã¯ãããã«è¨èªã¿ã°ããããã©ããã«ãããããç¹å®ã®é·ãã®æååã®ãµãã»ãããåç §ããããã«ä½¿ç¨ã§ãã¾ãããããã£ã¦ããã¡ã»ããã®å¯¾( xs:length 3 )ã«å¯¾å¿ããrdf:PlainLiteralã®å¤ç©ºéã®ãµãã»ããã«ã¯ã< "abc" , "en" >ã¨< "abc" , "de" >ã®å¯¾ã®ã¿ã§ã¯ãªãã"abc"ã¨ããæååãå«ã¾ãã¦ãã¾ãã
rdf:langRangeã¨ãããã¡ã»ããã¯ãè¨èªã¿ã°ãå«ã¾ãã¦ããæååã®ãµãã»ãããåç §ããããã«ä½¿ç¨ã§ãã¾ããè¨èªç¯å²ã¯å°æåã§ããå¿ è¦ããªãããããã³ã°ã®ã¢ã«ã´ãªãºã ã¯å¤§æåã»å°æåãåºå¥ããªããã¨ã«æ³¨æãã¦ãã ããããããã£ã¦ããã¡ã»ããã®å¯¾( rdf:langRange "de-DE" )ã«å¯¾å¿ããrdf:PlainLiteralã®å¤ç©ºéã®ãµãã»ããã«ã¯ã< "abc" , "de-de" >ã¨< "abc" , "de-de-1996" >ã®å¯¾ãå«ã¾ãã¦ãã¾ãï¼RFC 4647ã«ããã"de-DE"ã¨ããè¨èªç¯å²ã¨ä¸è´ããããï¼ãã"abc"ã¨ããæååï¼è¨èªã¿ã°ãæãã対ã§ã¯ãªãããï¼ãã< "abc" , "de-deva" >ã¨< "abc" , "de-latn-de" >ã®å¯¾ã¯å«ã¾ãã¦ãã¾ããï¼RFC 4647ã«ããã"de-DE"ã¨ããè¨èªç¯å²ã¨ä¸è´ããªãããï¼ã
ãã¡ã»ããã®å¯¾( rdf:langRange "*" )ã¯ã< "abc" , "lc-langtag" >ã¨ããå½¢å¼ã®ãã¹ã¦ã®å¯¾ãå«ãã§ããrdf:PlainLiteralã®å¤ç©ºéã®ãµãã»ããã«ãããã³ã°ããã¾ããOWL 2ãªã©ã®è¨èªã§ã¯ãããã¯ãã¼ã¿å¤ã«è¨èªã¿ã°ãå«ã¾ãã¦ããªããã°ãªããªããã¨ãæ示ããããã«ä½¿ç¨ã§ãã¾ãã
ä¸è¨ãããrdf:PlainLiteralãã¼ã¿åãå«ãã§ãããã¼ã¿åä»ã解éã§ã¯ãrdf:PlainLiteralã®å¤ç©ºéã¯ããã¬ã¼ã³ã»ãªãã©ã«ã«å²ãå½ã¦ããããã¼ã¿å¤ããããªãå«ããã¨ã«ãªãã¾ãï¼è¨èªã¿ã°ã®æç¡ã«é¢ãããï¼ããããã£ã¦ãrdf:PlainLiteralãã¼ã¿åã¯ããã®éåãåç §ããæ示çãªæ¹æ³ãæä¾ãã¾ãã
æ§æä¸ä½å°ãªå¥ã®æ å ±æºãé¤å»ããrdf:PlainLiteralãã¼ã¿åãç解ããªãã¢ããªã±ã¼ã·ã§ã³ã¨ã®é«ãç¸äºéç¨æ§ãä¿æããããã«ãRDFã°ã©ãã¨SPARQLç¨ã®æ§æã«ãããrdf:PlainLiteralãªãã©ã«ã®å½¢å¼ã¯ãåä»ããªãã©ã«ç¨ã®æ§æã§ã¯ãªãã対å¿ããæ¢åã®ãã¬ã¼ã³ã»ãªãã©ã«ç¨ã®æ§æã§ãããããã£ã¦ãrdf:PlainLiteralããã¼ã¿åã¨ãã¦æã¤åä»ããªãã©ã«ã¯ããã®ä»æ§ã§ã¯ãRDFã°ã©ãã¾ãã¯SPARQLç¨ã®æ§æã«ããã¦æå¹ã§ãªãã¨ã¿ãªããã¾ãã
ãã®è¨è¨ãå®è£ ãããã®ç¸äºéç¨æ§ãæä¾ããããã«ããã®ãã¼ã¿åãæ¡ç¨ããã¢ããªã±ã¼ã·ã§ã³ã¯ããã¬ã¼ã³ã»ãªãã©ã«ç¨ã®æ§æãæä¾ãããå ´åã¯å¸¸ã«ï¼rdf:PlainLiteralåä»ããªãã©ã«ã§ã¯ãªãï¼RDFã°ã©ãããã³SPARQLçµæç¨ã®æ¢åã®æ§æã«ãããå ´åã®ããã«ããã¬ã¼ã³ã»ãªãã©ã«ãç¨ããªããã°ãªãã¾ããï¼MUSTï¼
ããã«ãã·ã¹ãã ã¯ãéæ§æçãªå ¬éã¤ã³ã¿ã¼ãã§ã¼ã¹ã«åãæ§ãªå¶éãå¿ è¦ããããã¾ãããä¾ãã°ãæ¡å¼µSPARQLåºæ¬ã°ã©ãã»ãããã³ã°ã§ã¯ãrdf:PlainLiteralãç解ããå«æã¬ã¸ã¼ã ã«ãããSPARQLåºæ¬ã°ã©ãã»ãã¿ã¼ã³ã®ãããã³ã°çµæã¯ãæ¢åã®RDFã®ãã¬ã¼ã³ã»ãªãã©ã«ã®å½¢å¼ã§å¤æ°ãã¤ã³ãã£ã³ã°ãæä¾ããªããã°ãªãã¾ããï¼MUSTï¼ã
ãã®é ã¯ãrdf:PlainLiteralãã¼ã¿å¤ãæ§ç¯ãããã®ä¸ã§æ©è½ããé¢æ°ãå®ç¾©ãã¾ãã使ç¨ããç¨èªã¨ããããã®é¢æ°ã®è¨è¿°æ¹æ³ã¯ãXQuery 1.0ã¨XPath 2.0é¢æ°ããã³æ¼ç®å[XPathFunc]ã«å¾ãã¾ããåã ã®é¢æ°ã¯QName[XML Namespaces]ã§èå¥ããã¾ãããã®é ã§ç¨ãã¦ããã¨ã©ã¼ã³ã¼ãã¯ãXPath 2.0ä»æ§[XPath20]ã®ä»é²Gã¨ãXQueryã¨XPathé¢æ°ä»æ§[XPathFunc]ã®ä»é²Cã§æä¾ããã¦ãã¾ãã
plfn:PlainLiteral-from-string-lang( $arg1 as xs:string, $arg2 as xs:string) as rdf:PlainLiteral
è¦ç´: $arg2ãåå¨ãã¦ããã°ããã¼ã¿å¤< $arg1, lowercase($arg2) >ãè¿ããããã§ãªããã°ããã¼ã¿å¤$arg1ãè¿ãã¾ããã©ã¡ãã®å¼æ°ããåxs:stringããµãã¿ã¤ãã®1ã¤ã§ãªããã°ãªããã$arg2 — åå¨ãã¦ããã° — ã¯ãï¼ç©ºã§ãªãï¼è¨èªã¿ã°ã§ãªããã°ãªãããããã§ãªããã°ããã®é¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ããrdf:PlainLiteralã®å¤ç©ºéã§ã¯ãè¨èªã¿ã°ã¯å°æåã§ããããããã®é¢æ°ã¯$arg2ãå°æåã«å¤æãããã¨ã«æ³¨æãã¦ãã ããã
plfn:string-from-PlainLiteral( $arg as rdf:PlainLiteral) as xs:string
è¦ç´: $argãå½¢å¼< s, l >ã¾ãã¯å½¢å¼sã®rdf:PlainLiteralãã¼ã¿å¤ã§ããå ´åãsã®æååé¨åãè¿ãã¾ãã$argãårdf:PlainLiteralã§ãªãå ´åããã®é¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ãã
plfn:lang-from-PlainLiteral( $arg as rdf:PlainLiteral ) as xs:language
è¦ç´: $argãå½¢å¼< s, l >ã®rdf:PlainLiteralãã¼ã¿å¤ã§ããå ´åãè¨èªã¿ã°lãè¿ãã$argãå½¢å¼sã®rdf:PlainLiteralãã¼ã¿å¤ã§ããå ´åã空ã®æååãè¿ãã¾ãã$argãårdf:PlainLiteralã§ãªãå ´åããã®é¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ãã
ãã®é ã§ç¨ãã¦ããç §åé åºã®æ¦å¿µã¯ãXPathã¨XQueryé¢æ°ä»æ§[XPathFunc]ã®7.3.1é ããå¾ããã¾ãã
plfn:compare( $comparand1 as rdf:PlainLiteral?, $comparand2 as rdf:PlainLiteral? ) as xs:integer?
plfn:compare( $comparand1 as rdf:PlainLiteral?, $comparand2 as rdf:PlainLiteral?, $collation as xs:string ) as xs:integer?
è¦ç´: $comparand1ã¾ãã¯$comparand2ã®ãããããårdf:PlainLiteralã§ã¯ãªããã$collationãæå®ããã¦ãããã®ã®åxs:stringã§ã¯ãªãå ´åããã®é¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ããããã§ãªããã°ãå¼æ°ã®ãã¡ã®1ã¤ã空ã§ããå ´åã$comparand1ããã³$comparand2ã®ãã¡ã®1ã¤ã«è¨èªã¿ã°ããããããä¸æ¹ã«ã¯ãªãå ´åãã¾ãã¯$comparand1ããã³$comparand2ã®è¨èªé¨åãåçã§ãªãå ´åãé¢æ°ã¯ç©ºã®ã·ã¼ã±ã³ã¹ãè¿ãã¾ããããã§ãªããã°ããã®é¢æ°ã¯ã$comparand1ï¼ã¾ãã¯ãè¨èªã¿ã°ããªãå ´åã«ã¯$comparand1èªèº«ï¼ã®æååé¨åã®å¤ãã$comparand2ï¼ã¾ãã¯ãè¨èªã¿ã°ããªãå ´åã«ã¯$comparand2èªèº«ï¼ã®æååé¨åã®å¤ããããããå°ããããåçããããããã大ãããã«å¿ãã¦ã-1ã0ã1ãè¿ãã¾ãããã®é¢æ°ã®å¼ã³åºãã§ç¨ããããç §åé åºã¯ãXPathã¨XQueryé¢æ°ä»æ§[XPathFunc]ã®7.3.1é ã®è¦åã«ãã£ã¦æ±ºã¾ãã¾ãã
ãã®é¢æ°ã®æåã®ãã¼ã¸ã§ã³ã«ãã£ã¦ãXQueryæ¼ç®å"eq"ã"ne"ã"gt"ã"lt"ã"le"ã"ge"ãç¨ãã¦rdf:PlainLiteralã®å¤ã®æ¯è¼ãå¯è½ã¨ãªãã¾ãã
ãã®2ã¤ã®é¢æ°ã¯ã次ã®å®ç¾©ã§å®£è¨ãããXQueryé¢æ°ã¨è¦ããã¨ãã§ãã¾ãã
declare function plfn:compare( $comparand1 as rdf:PlainLiteral?, $comparand2 as rdf:PlainLiteral? ) as xs:integer? { return if ( fn:empty($comparand1) ) then $comparand1 else if ( fn:empty($comparand2) ) then $comparand2 else if ( fn:compare ( plfn:lang-from-PlainLiteral( $comparand1 ), plfn:lang-from-PlainLiteral( $comparand2 ) ) = 0 ) then fn:compare ( plfn:string-from-PlainLiteral( $comparand1 ), plfn:string-from-PlainLiteral( $comparand2 ) ) }
declare function plfn:compare( $comparand1 as rdf:PlainLiteral?, $comparand2 as rdf:PlainLiteral? $collation as xs:string ) as xs:integer? { return if ( fn:empty($comparand1) ) then $comparand1 else if ( fn:empty($comparand2) ) then $comparand2 else if ( fn:compare ( plfn:lang-from-PlainLiteral( $comparand1 ), plfn:lang-from-PlainLiteral( $comparand2 ) ) = 0 ) then fn:compare ( plfn:string-from-PlainLiteral( $comparand1 ) , plfn:string-from-PlainLiteral( $comparand2 ), $collation) }
plfn:length($arg as rdf:PlainLiteral) as xs:integer
è¦ç´: $argããããããå½¢å¼< s, l >ã®rdf:PlainLiteralãã¼ã¿å¤ã§ããããæååå¤sã§ããå ´åãæååé¨åså ã®æåæ°ãè¿ãã¾ãã$argãårdf:PlainLiteralã§ãªãå ´åããã®é¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ãã
ãã®é¢æ°ã¯ã次ã®å®ç¾©ã§å®£è¨ãããXQueryé¢æ°ã¨è¦ããã¨ãã§ãã¾ãã
declare function plfn:length($arg as rdf:PlainLiteral?) as xs:integer { return fn:string-length ( plfn:string-from-PlainLiteral( $arg ) ) }
plfn:matches-language-range($arg as rdf:PlainLiteral?, $range as xs:string) as xs:boolean
è¦ç´: $argãårdf:PlainLiteralã®ãªãã©ã«ã®é·ã0ã1ã®ã·ã¼ã±ã³ã¹ã§ããã$rangeãåxs:stringã§ããå ´åã«ã®ã¿ããã®é¢æ°ã¯å®ç¾©ããã¾ãããã©ã¡ã¼ã¿ããããã®åä»ãæ¡ä»¶ãæºãããªãå ´åãé¢æ°ã«ããerr:FORG0006ã¨ããåã¨ã©ã¼ãçãã¾ããåä»ãæ¡ä»¶ãæºããããã°ãé¢æ°ã¯ã$argãããè¨èªã¿ã°ã®ãããã³ã°ã[BCP-47]ã«å¯¾ããæ¡å¼µãã£ã«ã¿ãªã³ã°ã®ã¢ã«ã´ãªãºã ã§æå®ããã¦ããæ¡å¼µè¨èªç¯å²$rangeã¨ä¸è´ããè¨èªã¿ã°lãæã¤å½¢å¼< s, l >ã®rdf:PlainLiteralãã¼ã¿å¤ã§ããå ´åãtrueï¼çï¼ãè¿ããããã§ãªããã°ãfalseï¼å½ï¼ãè¿ãã¾ããããã¯ãå¼æ°$argãæåårdf:PlainLiteralãã¼ã¿å¤ã§ããå ´åãé¢æ°ãfalseï¼å½ï¼ãè¿ããã¨ãæå³ãã¾ãã空ã®å ¥åã·ã¼ã±ã³ã¹ã¯ã空ã®æååããæãrdf:PlainLiteralãã¼ã¿å¤ã¨ãã¦æ±ããããããã£ã¦ããã®ãããªå ¥åã«ããã¦ã¯ããã®é¢æ°ãfalseï¼å½ï¼ãè¿ãã¾ãã
RIFã¨OWLã®ã¯ã¼ãã³ã°ã°ã«ã¼ãã¯ãRDFã§è¦ãããããã«ãé¢é£ããè¨èªã¿ã°ãæããæååããµãã¼ãããããã«åæã«ä½æ¥ãè¡ãã¾ããããã®ä»æ§ã¯ããããã®2ã¤ã®ã°ã«ã¼ãéã®å ±åä½æ¥ã®çµæã§ããããã¼ã¿årif:textã¨owl:internationalizedStringã®ä½æ¥ã«åºã¥ãã¦ãã¾ãã
ç·¨éè ã¯ã両æ¹ã®ã¯ã¼ãã³ã°ã°ã«ã¼ãã®ã¡ã³ãã¼ã¨è°é·ã«å ããAddison PhillipsãC. Michael Sperberg-McQueenãEric Prud'hommeauxãAndy Seaborneããã³Pat Hayesã«ãã¾ãããã®ä»æ§ã®è©³ç´°ã®ä½æã«æ¯æ´ããã¦ãã ãã£ãpublic-rdf-textã®ã¡ã¼ãªã³ã°ã»ãªã¹ãã®ãã®ä»ã®åå è ã«æè¬ç³ãä¸ãã¾ãã
ãã®é ã§ã¯ã2009å¹´10æ27æ¥ã®å§å以å¾ã®ãã®ããã¥ã¡ã³ãã¸ã®å¤æ´ãã¾ã¨ãã¦ãã¾ãã
ãã®é ã§ã¯ã2009å¹´9æ22æ¥ã®å§åæ¡ä»¥å¾ã®ãã®ããã¥ã¡ã³ãã¸ã®å¤æ´ãã¾ã¨ãã¦ãã¾ãã
ãã®é ã§ã¯ã2009å¹´6æ11æ¥ã®å§ååè£ä»¥å¾ã®ãã®ããã¥ã¡ã³ãã¸ã®å¤æ´ãã¾ã¨ãã¦ãã¾ãã
2009å¹´4æ21æ¥ã®æçµèæ¡ä»¥å¾ã次ã®å¤æ´ãè¡ãã¾ããã