Skip to content
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

Merged
merged 9 commits into from
Sep 28, 2023
Merged

examples: Examples of .htaccess and README.md #3600

merged 9 commits into from
Sep 28, 2023

Conversation

bact
Copy link
Contributor

@bact bact commented Sep 28, 2023

bact and others added 7 commits September 28, 2023 10:19
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.
```ApacheConf
# Example
#
# https://w3id.org/example redirects to https://example.com/
Copy link
Collaborator

@dgarijo dgarijo Sep 28, 2023

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?

Copy link
Contributor Author

@bact bact Sep 28, 2023

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.

## Publish vocabularies with W3ID

If you plan to publish a vocabulary/ontology with W3ID,
see https://w3id.org/examples/ontology.
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@dgarijo
Copy link
Collaborator

dgarijo commented Sep 28, 2023

@bact
I added small comments. Also, aren't you missing the .htaccess file redirecting to example.org in the /examples?

@bact
Copy link
Contributor Author

bact commented Sep 28, 2023

@bact I added small comments. Also, aren't you missing the .htaccess file redirecting to example.org in the /examples?

For .htaccess in examples/, I am not sure where to redirect it to.

@bact
Copy link
Contributor Author

bact commented Sep 28, 2023

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?

@dgarijo
Copy link
Collaborator

dgarijo commented Sep 28, 2023

I think it depends on the use case. 303 is the recommended for semantic resources at least.

@bact
Copy link
Contributor Author

bact commented Sep 30, 2023

@bact I added small comments. Also, aren't you missing the .htaccess file redirecting to example.org in the /examples?

For .htaccess in examples/, I am not sure where to redirect it to.

decided to redirect it to https://github.com/perma-id/w3id.org/tree/master/examples - see #3601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants