SET datestyle = 'ISO, YMD';
SET timezone = 'UTC';

SELECT 42::int2::rdfnode;
SELECT 4273::int4::rdfnode;
SELECT 123456789101112::int8::rdfnode;
SELECT 42.12345::numeric::rdfnode;
SELECT 42.1234::float4::rdfnode;
SELECT 42.123456650::float8::rdfnode;
SELECT 42.12345::double precision::rdfnode;
SELECT 'Infinity'::numeric::rdfnode;
SELECT '-Infinity'::numeric::rdfnode;
SELECT 'Infinity'::float4::rdfnode;
SELECT '-Infinity'::float4::rdfnode;
SELECT 'Infinity'::float8::rdfnode;
SELECT '-Infinity'::float8::rdfnode;
SELECT 'Infinity'::double precision::rdfnode;
SELECT '-Infinity'::double precision::rdfnode;
SELECT 'NaN'::numeric::rdfnode;
SELECT 'NaN'::float4::rdfnode;
SELECT 'NaN'::float8::rdfnode;
SELECT 'NaN'::double precision::rdfnode;
SELECT true::rdfnode;
SELECT false::rdfnode;
SELECT '"rdf_fdw"'::rdfnode;
SELECT '"rdf_fdw"@en'::rdfnode;
SELECT '2025-01-01'::date::rdfnode;
SELECT '18:30:25'::time without time zone::rdfnode;
SELECT '18:30:25+02:00'::time with time zone::rdfnode;
SELECT '2025-01-01 18:30:25'::timestamp without time zone::rdfnode;
SELECT '2025-01-01 18:30:25 UTC'::timestamp with time zone::rdfnode;
SELECT '1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds'::interval::rdfnode;
SELECT '-1 year -2 months -3 weeks -4 days -5 hours -6 minutes -7 seconds'::interval::rdfnode;

SELECT '"42"^^<http://www.w3.org/2001/XMLSchema#short>'::rdfnode::int2;
SELECT '"4273"^^<http://www.w3.org/2001/XMLSchema#int>'::rdfnode::int4;
SELECT '"123456789101112"^^<http://www.w3.org/2001/XMLSchema#long>'::rdfnode::int8;
SELECT '"42.12345"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::numeric;
SELECT '"42.1234"^^<http://www.w3.org/2001/XMLSchema#float>'::rdfnode::float4;
SELECT '"42.123456650"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float8;
SELECT '"INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::numeric;
SELECT '"-INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::numeric;
SELECT '"INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::float4;
SELECT '"-INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::float4;
SELECT '"INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::float8;
SELECT '"-INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::float8;
SELECT '"INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::double precision;
SELECT '"-INF"^^<http://www.w3.org/2001/XMLSchema#decimal>'::rdfnode::double precision;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::numeric;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float4;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float8;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::double precision;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#float>'::rdfnode::numeric;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#float>'::rdfnode::float4;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#float>'::rdfnode::float8;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#float>'::rdfnode::double precision;
SELECT '"INF"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float8::rdfnode;
SELECT '"-INF"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float8::rdfnode;
SELECT '"NaN"^^<http://www.w3.org/2001/XMLSchema#double>'::rdfnode::float8::rdfnode;
SELECT '"true"^^<http://www.w3.org/2001/XMLSchema#boolean>'::rdfnode::boolean;
SELECT '"false"^^<http://www.w3.org/2001/XMLSchema#boolean>'::rdfnode::boolean;
SELECT '"1"^^<http://www.w3.org/2001/XMLSchema#boolean>'::rdfnode::boolean;
SELECT '"0"^^<http://www.w3.org/2001/XMLSchema#boolean>'::rdfnode::boolean;
SELECT '"rdf_fdw"'::rdfnode::text;
SELECT '"rdf_fdw"@en'::rdfnode::text;
SELECT '"2025-01-01"^^<http://www.w3.org/2001/XMLSchema#date>'::rdfnode::date;
SELECT  '"18:30:25+02:00"^^<http://www.w3.org/2001/XMLSchema#time>'::rdfnode::time with time zone;
SELECT '"18:30:25"^^<http://www.w3.org/2001/XMLSchema#time>'::rdfnode::time without time zone;
SELECT '"2025-01-01T18:30:25"^^<http://www.w3.org/2001/XMLSchema#dateTime>'::rdfnode::timestamp without time zone;
SELECT '"2025-01-01T18:30:25Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>'::rdfnode::timestamp with time zone;
SELECT '"P1Y2M25DT5H6M7S"^^<http://www.w3.org/2001/XMLSchema#duration>'::rdfnode::interval;
SELECT '"-P1Y2M25DT5H6M7S"^^<http://www.w3.org/2001/XMLSchema#duration>'::rdfnode::interval;