LDflex | A JavaScript DSL for querying Linked Data on the Web | Runtime Evironment library
kandi X-RAY | LDflex Summary
kandi X-RAY | LDflex Summary
LDflex is a domain-specific language for querying Linked Data on the Web as if you were browsing a local JavaScript graph. You can write things like person.friends.firstName to get a list of your friends. Thanks to the power of JSON-LD contexts and JavaScript's Proxy, these properties are not hard-coded in LDflex, but can be chosen at runtime. They feel as if you're traversing a local object, while you're actually querying the Web—without pulling in all data first. Tim Berners-Lee came up with the idea for such a fluid JavaScript interface to Linked Data, in a discussion on how to make Linked Data easier for developers.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of LDflex
LDflex Key Features
LDflex Examples and Code Snippets
Community Discussions
Trending Discussions on LDflex
QUESTION
I'd like to use LDFlex to list all subjects within a document, of a certain type.
data["https://example.com/mydocument.ttl"].subjects
provides all the subjects in the document. It's possible in SPARQL to specify something like WHERE {?s a mytype}
; how can I do that in LDFlex? Is it possible?
ANSWER
Answered 2020-May-18 at 21:23If you have the rdf:type
property mapped as a reverse property in your JSON-LD context (let's say, as ofType
), then you can do the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LDflex
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page