Giter Club home page Giter Club logo

Comments (11)

melvincarvalho avatar melvincarvalho commented on August 23, 2024 3

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.

dgarijo avatar dgarijo commented on August 23, 2024 1

@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.

bact avatar bact commented on August 23, 2024 1

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.

bact avatar bact commented on August 23, 2024 1

PR #3600 is successfully merged and we now have /examples, with two subdirectories:

  • /examples/ontology redirects to https://w3id.org/example
  • /examples/simple redirects to https://example.com

It also has /examples/README.md containing three examples with explanation:

  1. Minimalist (grouping)
  2. Supporting multiple media types (MIME types)
  3. 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 and Options -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.

dgarijo avatar dgarijo commented on August 23, 2024 1

Thanks! I think the examples dir should probably resolve to your suggestion. Your PR is now merged.

from w3id.org.

dgarijo avatar dgarijo commented on August 23, 2024

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.

davidlehn avatar davidlehn commented on August 23, 2024

@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.

dgarijo avatar dgarijo commented on August 23, 2024

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.

ramonawalls avatar ramonawalls commented on August 23, 2024

this would be great

from w3id.org.

bact avatar bact commented on August 23, 2024

I have create PR #3599 to address some of the items we have proposed here.

from w3id.org.

bact avatar bact commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.