Syntax RDF海龟语法-如何减少代码重复?

Syntax RDF海龟语法-如何减少代码重复?,syntax,rdf,rdfs,turtle-rdf,Syntax,Rdf,Rdfs,Turtle Rdf,我有以下有效的海龟语法: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix sc: <http://education.data.gov.uk/def/school/School#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix geo: <http://www.w3.org/2003/0

我有以下有效的海龟语法:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix sc: <http://education.data.gov.uk/def/school/School#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos>.

<http://example.com/schools/#1000> a <http://education.data.gov.uk/def/school/School> . 
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/establishmentName>    "Atherstone Early Years Centre". 
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/establishmentNumber> "1000". 
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/Address>  [<http://education.data.gov.uk/def/school/address1> "RATCLIFFE ROAD";     <http://education.data.gov.uk/def/school/postcode> "CV9 1LF"]. 
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/establishmentType> "Nursery".
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/districtAdministrative> "North Warwickshire".
<http://example.com/schools/#1000> <http://education.data.gov.uk/def/school/uniqueReferenceNumber> "2016".
<http://example.com/schools/#1000> geo:lat "52.5786677".
<http://example.com/schools/#1000> geo:long "-1.5420408".
@前缀rdf:。
@前缀sc:。
@前缀rdfs:。
@前缀geo:。
A.
“阿瑟斯通早年中心”。
"1000". 
[“拉特克利夫路”;“CV9 1LF”]。
“托儿所”。
“北沃里克郡”。
"2016".
地理位置:lat“52.5786677”。
地理位置:长“-1.5420408”。
我基本上是用
id#1000
定义一个学校对象,然后向其添加属性。我想知道是否可以在每个属性之前去掉
定义,并以某种方式将属性用括号或其他东西括起来。有什么想法吗?

分号:

<http://example.com/schools/#1000>
  a <http://education.data.gov.uk/def/school/School> ;
  <http://education.data.gov.uk/def/school/establishmentName>    "Atherstone Early Years Centre" ;
  ...
  <http://example.com/schools/#1000> geo:long "-1.5420408" .

A.
“阿瑟斯通早年中心”;
...
地理位置:长“-1.5420408”。

您可以使用
sp1o1;p2o2;p3 o3
。另一个问题的答案中已经描述了这一点。问题并不完全相同,它询问SPARQL中的语法是什么,您正在寻找Turtle中的语法,但语法在两种语言之间是共享的。对于同一谓词的多个对象也有
sp1o1a,o1b;p2o2a,o2b,o2c;p3 o3.