Top

Name

DB.DBA.RDF_LANGMATCHES — Returns 1 if language identifier r matches lang pattern t.

Synopsis

DB.DBA.RDF_LANGMATCHES ( in r varchar ,
  in t varchar );
 

Description

Returns 1 if language identifier r matches lang pattern t

Parameters

r

language identifies (string or NULL).

t

language pattern (exact name, first two letters or '*').

Return Types

integer

Examples

Example 24.306. Simple example

SQL>SELECT DB.DBA.RDF_QNAME_OF_IID ( /*retval[*/  "s-4-1-t0"."P" /* p */ /*]retval*/ ) AS /*tmpl*/ "p",
    DB.DBA.RDF_SQLVAL_OF_OBJ ( /*retval[*/  "s-4-1-t0"."O" /* v */ /*]retval*/ ) AS /*tmpl*/ "v"
FROM DB.DBA.RDF_QUAD AS "s-4-1-t0"
WHERE /* field equal to URI ref */
    "s-4-1-t0"."S" = DB.DBA.RDF_MAKE_IID_OF_QNAME_SAFE ( 'http://example.org/#x' )
    AND /* filter */
    not ( DB.DBA.RDF_LANGMATCHES ( DB.DBA.RDF_LANGUAGE_OF_OBJ ( /*retval[*/  "s-4-1-t0"."O" /* v */ /*]retval*/ ), '*' ))
OPTION (QUIETCAST)
VARCHAR
_______________________________________________________________________________

http://example.org/data/y
http://example.org/data/x
http://example.org/a
3 Rows. -- 20 msec.