Comments (1)
It's a good idea to allow the UI to ingest both full IRIs and namespace-abbreviated ones. I'm fixing this in the implementation.
On the other hand, the prefix.cc, and #? ?_foo: implementations have issues. With prefix.cc, it's very unlikely you'll need to replace parameter values with resources in the foaf: or prov: namespaces. The #? ?_foo thing would be overkill for something which is an issue only at demo time with the swagger-ui interface (where you have to type the IRIs), since most of the usage of grlc enabled APIs will be programatic and users will never have to write those IRIs themselves.
I think the prettiest thing to do is to let parameter value IRIs to be abbreviated with arbitrary namespaces. If a namespace is defined in the query as e.g. PREFIX foo: , but never used in the query template, chances are that foo:thing will be a reasonable resource to use as parameter value in ?_var_iri placeholders (queries should indeed document this).
@rijpma @RinkeHoekstra
from grlc.
Related Issues (20)
- Returning JSON-LD HOT 16
- PIP package isntallation doesn't seem to work... HOT 5
- Restore Flake8 linting on Github testing action HOT 2
- Help me to install most fresh version HOT 4
- Pip install from GitHub does not work HOT 1
- Add GitLab tests HOT 1
- Adding GitLab testing repo HOT 2
- Document GitLab functionality HOT 1
- Server throws HTTP 500 error when there is no accept header in the request HOT 3
- Allow to describe parameters HOT 3
- Allowing values to be inserted from the body into a query HOT 3
- Python version upgrade
- Tweet on release
- Support for SPARQL queries stored in nanopubs HOT 1
- Internal Server Error HOT 7
- "No API definition provided." for subdirectory in github HOT 4
- Avoid clashes with other files present in repository? HOT 3
- SARS-CoV-2-Queries API not working HOT 2
- "cannot access local variable ‘query_metadata’ where it is not associated with a value" HOT 3
- Documenting JSON queries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grlc.