n3-writer-test-15.n3

来自「Jena推理机」· N3 代码 · 共 25 行

N3
25
字号
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix a: <http://foo/a#> .
@prefix : <#> .

:test :comment "RDF collections as lists : but with attached property so not well-formed lists" .

# This is the list ("1" "2" "3" "4")

_:a1 rdf:first "1" .
_:a1 rdf:rest  _:a2 .

_:a2 rdf:first "2" .
_:a2 rdf:rest  _:a3 .

_:a3 rdf:first "3" .
_:a3 rdf:rest  _:a4 .

_:a4 rdf:first "4" .
_:a4 rdf:rest rdf:nil .

# This adds a property to the middle element.
# Tail ("3" "4") should be pretty printed.

_:a2 a:prop "value" .

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?