-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples: Examples of .htaccess and README.md #3600
Conversation
This will address issue #1643 * Move current example/ to examples/ontology/ * Add new example/ that redirects to https://example.com * Add new examples/README.md with examples of .htaccess and links to examples of README.md and examples/ontology/
Handle content negotiation for the RML ontology and update the redirections with the latest changes.
examples/README.md
Outdated
```ApacheConf | ||
# Example | ||
# | ||
# https://w3id.org/example redirects to https://example.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. It should be https://w3id.org/examples . And right now we are missing the .htaccess file no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I have fixed all the instances that mentioned https://w3id.org/example wrongly.
In that example, I replace it with w3id.org/examples/simple instead.
examples/README.md
Outdated
## Publish vocabularies with W3ID | ||
|
||
If you plan to publish a vocabulary/ontology with W3ID, | ||
see https://w3id.org/examples/ontology. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to link to /example/ directly? The one in /examples is a redirect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. That's better. I have changed that accordingly.
@bact |
Also add examples/simple for a simple redirection to https://example.com
For .htaccess in examples/, I am not sure where to redirect it to. |
I'm also not sure about what is the best practice on HTTP status, which one is recommended for W3ID use case: 302, 303, or 307? Or it really depends on each ID use case? |
I think it depends on the use case. 303 is the recommended for semantic resources at least. |
decided to redirect it to https://github.com/perma-id/w3id.org/tree/master/examples - see #3601 |
examples/README.md
with examples of .htaccess and links to examples of README.md and examples/ontology/ - as proposed in a simple tutorial for common redirecting examples? #1530 and Improving examples. #1643examples/ontology
that redirects tohttps://w3id.org/example
- as proposed in Improving examples. #1643