LD4P / sinopia_server

[Deprecated - switching to MongoDB] Sinopia Back-end CRUD Service. LDP-inspired, HTTP Server taking JSON-LD resources & administrative metadata.
Apache License 2.0
1 stars 1 forks source link

simple resource types class for LDP type strings? #68

Open jmartin-sul opened 5 years ago

jmartin-sul commented 5 years ago

the resources the client creates in sinopia_server/trellis have to have exactly the right type specified in a link header upon creation for things to function correctly (esp if said resources are to contain other resources). since it's easy to mistype those type strings, maybe we should have some class with simple methods or constants for returning those type strings, living along-side the auto-gen SDK code. e.g. nonRdfResourceTypeLink() { return '<http://www.w3.org/ns/ldp#NonRDFSource>; rel="type"' }.