ontola / ldget Goto Github PK
View Code? Open in Web Editor NEWA simple command line interface tool to get RDF items using HTTP GET requests.
License: GNU General Public License v3.0
A simple command line interface tool to get RDF items using HTTP GET requests.
License: GNU General Public License v3.0
Sometimes, the subject does not match with the fetch url. Currently, I need to do this to see all triples for some RDF document (i.e. graph / resource).
ldget t . . . --r=https://id.openraadsinformatie.nl/44477
I could add a resource function, which should return all triples.
ldget resource https://id.openraadsinformatie.nl/44477
Maybe ldget graph
is a better name.
A lot of linked data resources unfortunately have URLs that don't resolve properly - they're only available on SPARQL endpoints.
It might make sense to add support for this. Perhaps add a custom flag for a SPARQL endpoint.
in negotiator.go
, we can set a verbose
, but this should be a flag. This requires to pass down the Args
object.
The triples
command always shows the subject, but in most responses, the user already knows the subject. We could introduce a new command, e.g. PredicateObject
(po
) that does not print out the subject for each triple.
ldget po orid:20
<somePredicate> "SomeObject"
Although most of the Snap config is set up, I need to fix the permissions, since I need read access to a specific folder (~/.ldget/prefixes
) using the personal-files interface. This might serve as an example for how to request the snapcraft reviewers.
The Store automatic review failed.
A human will soon review your snap, but if you can't wait please write in the snapcraft forum asking for the manual review explicitly.
If you need to disable confinement, please consider using devmode, but note that devmode revision will only be allowed to be released in edge and beta channels.
Please check the errors and some hints below:
- override not found for 'plugs/personal-files'. Use of the personal-files interface is reserved for vetted publishers. If your snap legitimately requires this access, please make a request in the forum using the 'store-requests' category (https://forum.snapcraft.io/c/store-requests), or if you would prefer to keep this private, the 'sensitive' category.
- human review required due to 'allow-installation' constraint (bool)
The --resource
flag is used for explicitly setting a URL to fetch. In RDF land, this is usually referred to as "graph" or "document", but not "resource". A rename would be fitting.
Since the API of ldget seems to closely resemble Triple Pattern Fragments, it might be a good idea to mention it in the docs and make it formally compatible.
Maybe add an optional flag that takes a supported RDF mimeType to pick a serialization format for responses. Currenlty, it just serializes to NTriples.
ldget t example:thing --serialize=ttl
E.g.:
ldget --prefixfile /etc/prefixes
The prefixes file is included in the /testing
dir, but is not used in tests.
This requires using a custom prefixes file.
These tests are currently commented out.
Currently, the prefixes file is loaded multiple times. Let's put it in Args, import it on initializeArgs
Append to prefixes file.
ldget addprefix schema=https://schema.org
For things like Schema, RDF, FOAF etc. Maybe simply create the file if it does not exist on initialization.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.