Skip to content

Library only seems to be able to parse "framed" JSON-LD #5

@librarywebchic

Description

@librarywebchic

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions