1
我是JSON-LD的新手,我想知道是否有任何指定JSON-LD資源支持操作的方法,而不使用Hydra的supportedOperation或supportedProperty。 有什麼方法來指定的上下文是這樣的:如何爲json-ld中的資源指定受支持的http操作?
{
"@context" : {
"@vocab" : "http://www.schema.org/",
"data" : "object",
"id" :"Number",
"name" : "alternateName",
"full_name" : "name",
"links" : {
"@id" : "URL",
"@type" : "collection"
},
"href" : "URL",
"rel" : "relatedTo",
"operation" : [
{
"href" : "http://example.com/resources/1/anotherresources/2",
"method" : "POST",
"expects" :[parameter list],
"required" : [list of mandatory arguments],
"fixed value" : [list of argument with fixed value for a resource]
}
]
}
任何指導,將有很大的幫助..
感謝Markus ..我用Hydra Core Libraries和JSON-LD一起工作.. –