How to use the rdf-ext.parsers function in rdf-ext

To help you get started, we’ve selected a few rdf-ext examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rdf2h / ld2h / dist / ld2h.js View on Github external
$.get(href, function (matchersTtl) {
                        rdf.parsers.parse('text/turtle', matchersTtl, null, window.location.toString().split('#')[0]).then(function (matchers) {
                            console.log(matchers.toString());
                            matchersGraph.addAll(matchers);
                            if (matcherLinks.length > currentLink) {
                                processLink();
                            } else {
                                resolve(matchersGraph);
                            }
                        });
                    });
                };
github rdf2h / ld2h / dist / ld2h.js View on Github external
function parse(serializedRDF, serializationFormat) {
            if (!serializationFormat) {
                serializationFormat = 'text/turtle';
            }
            rdf.parsers.parse(serializationFormat, serializedRDF, null, window.location.toString().split('#')[0]).then(function (matchers) {
                console.log(matchers.toString());
                resolve(matchers);
            });
        }
        var matchersElem = $("#matchers");