File: rdf-test-24.n3

package info (click to toggle)
rdflib 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 38,248 kB
  • sloc: python: 39,216; sh: 153; makefile: 110
file content (24 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Language tags and datatypes

@prefix : <#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# In each of these, there is exactly one statement

# This parser allows lag tags and datatypes in any order
# One statement
:a 
    :q0 "11"@en^^xsd:integer ;
    :q0 "11"^^xsd:integer@en .

# One statement
:a
    :q1 "11"@fr^^xsd:integer ;
    :q1 "11"@not-fr^^xsd:integer ;
    :q1 "11"^^xsd:integer ;
    .

# Two statements
:a :q2 "<foo>bar</foo>"@en^^rdf:XMLLiteral ,
       "<foo>bar</foo>"@en .