-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I'm trying to parse JSON-LD with this library and it only seems to able to parse JSON-LD structured in a framed object oriented way. Rather than any form of JSON-LD.
Example it doesn't work properly when consuming - http://experiment.worldcat.org/oclc/7977212.jsonld
<script> var app = angular.module('jsonld-test', ['angularJsonld']); app.config(function(jsonldContextProvider){ jsonldContextProvider.add({ "schema": "http://schema.org/", "name": "schema:name", "author": "schema:author" "about": "schema:about" }); }); app.controller('ldcontroller', function(JsonldRest) { /\* Configure the API baseUrl */ JsonldRest.setBaseUrl('http://experiment.worldcat.org'); ``` /* A handler to a server collection of persons with a local context interpretation */ var bib = JsonldRest.collection('oclc'); /* We retrieve the bib http://www.worldcat.org/oclc/ */ var res = bib.one('7977212.jsonld').get(); console.log(res.about); ``` });Metadata
Metadata
Assignees
Labels
No labels