我有一些要序列化为N-Quad的JSON-LD对象,但是我不知道如何将图形信息添加到JSON-LD。这是我拥有的JSON-LD的示例:
{
'name':u'Meppel',
'classification':u'Municipality',
'ori_identifier': u'https://id.openraadsinformatie.nl/1',
'had_primary_source': u'https://argu.co/voc/mapping/meppel/cbs/identifier/gm0119',
'collection':u'meppel',
'@context':{
'name':{
'@id':'http://www.w3.org/2004/02/skos/core#prefLabel'
},
'classification':{
'@id':'http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#categories'
},
'ori_identifier':'@id',
'had_primary_source':{
'@id':'http://www.w3.org/ns/prov#hadPrimarySource'
},
'collection':{
'@id':'https://argu.co/ns/meta#collection'
},
'@base':'https://id.openraadsinformatie.nl/',
'Organization':'http://www.w3.org/ns/org#Organization',
'description':{
'@id':'http://purl.org/dc/terms/description'
}
},
'@type':'Organization',
'description':u'Gemeentelijke herindeling per 01-01-1998\r\nBegindatum voor 1830'
}
将其序列化为n个四元组时,我想将图形信息添加为第四列,以便将其序列化为:
<https://id.openraadsinformatie.nl/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/org#Organization> <http://purl.org/link-lib/supplant> .
<https://id.openraadsinformatie.nl/1> <http://www.w3.org/2004/02/skos/core#prefLabel> "Meppel" <http://purl.org/link-lib/supplant> .
<https://id.openraadsinformatie.nl/1> <http://www.w3.org/ns/prov#hadPrimarySource> "https://argu.co/voc/mapping/meppel/ibabs/identifier/41121" <http://purl.org/link-lib/supplant> .
如何将图形名称(http://purl.org/link-lib/supplant
)添加到JSON-LD?我尝试将@graph
简单地添加到JSON-LD对象,但是没有成功。