Comments (11)
Quite late to this issue, but this is a great resource:
https://htaccess.madewithlove.com/
It allows you to test your rewrite rules without the need to run a local server
from w3id.org.
@bact you were changing one of my w3ids in your PR, and I had to close it. I do not want to redirect w3id/example to example.com. Please add a new PR with the examples folder :) Thanks!
from w3id.org.
Sorry @dgarijo I misunderstand that.
I should follow this proposal instead.
Ok, my proposal then is as follows: Let's create an "examples" directory. Inside, we can have "ontology", which will redirect at the "example"directory I already did (plus a few explanations on a readme file) And then other examples for a simple 301/302 redirection, add in the readme how to add yourself as a person, etc. That way I won't have to change the w3id I already created.
from w3id.org.
PR #3600 is successfully merged and we now have /examples
, with two subdirectories:
/examples/ontology
redirects tohttps://w3id.org/example
/examples/simple
redirects tohttps://example.com
It also has /examples/README.md
containing three examples with explanation:
- Minimalist (grouping)
- Supporting multiple media types (MIME types)
- Dealing with query string
The README has a quick intro to .htaccess as well, but
- still lacks explanation on options commonly found, like
Options +FollowSymLinks
andOptions -MultiViews
- no explanation/recommendation on redirect status yet (302, 303, or 307?)
We may also need to update /README.md
(top-level) to link to this.
--
The examples/
directory currently does not have .htaccess
of its own.
I'm thinking may be we can just redirect it to https://github.com/perma-id/w3id.org/tree/master/examples and the visitors will see examples/README.md from there. (now in PR #3601)
What do you think?
from w3id.org.
Thanks! I think the examples
dir should probably resolve to your suggestion. Your PR is now merged.
from w3id.org.
Thanks, @davidlehn,
I created the example also because I am writing a longer tutorial on best practices for ontology publication (I am using https://w3id.org/example#). Would you rather have the URI located under example/ns?
Right now it does not prevent other people from doing their own examples, but just in case you had something else in mind.
from w3id.org.
@dgarijo I'm not sure what the layout should be. Open to discussion. I'm just guessing that since no one likes to read docs, they will immediately look to example(s)/
type dirs and copy & modify those. So those dirs should have some examples of current best practices for various use cases. Ontology publication is certainly a good use case! Unsure how to organize so people can see how to do simpler things too.
from w3id.org.
Ok, my proposal then is as follows:
Let's create an "examples" directory. Inside, we can have "ontology", which will redirect at the "example"directory I already did (plus a few explanations on a readme file)
And then other examples for a simple 301/302 redirection, add in the readme how to add yourself as a person, etc.
That way I won't have to change the w3id I already created.
from w3id.org.
this would be great
from w3id.org.
I have create PR #3599 to address some of the items we have proposed here.
from w3id.org.
New PR #3600 is created. Please kindly comment and suggest any change you feel needed.
I have revert the original files of /example back from previous commits. Apologize for messy commits.
from w3id.org.
Related Issues (20)
- Scalable id storage
- Add an "How-To-Test" to the description HOT 1
- warning on clone: case sensitive/insensitive file systems HOT 1
- allow browser (html) dereferencing of i-adopt terms to abuse the available local fragment identifiers HOT 1
- bad forward from w3id.org/mediatype/ HOT 4
- W3C Caused by: com.apicatalog.jsonld.JsonLdError: Unexpected response code [429] HOT 1
- Broken link to openspring.net under Management on the w3id.org home page HOT 1
- dggs.org broken HOT 4
- Update w3id.org homepage content with one from the latest README.md HOT 1
- add redirect test workflow / github action
- How to redirect to Ontology documentation with Widoco HOT 3
- Remove directory under /italia HOT 5
- Common format for metadata and test specifications HOT 5
- Redirection issue by certificate when importing in Protege HOT 7
- Verifiable Credential JWS2020 incorrect content-type HOT 6
- build upon @MattBlissett 's gensc PR #3946
- Additional requested static re-directions for `gensc` HOT 1
- add @turbomam as maintainer of `gensc` namespace
- Documentation of the top-level Apache httpd configuration HOT 2
- w3id.org should not redirect on OPTIONS HOT 4
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 w3id.org.