Skip to content

Why and How to fork LODSPeaKr

timrdf edited this page Oct 31, 2012 · 23 revisions

What is first

What we will cover

Note: This discussion remains for historical reference; see Develop your own components in a different repository for the newer technique.

If you want to develop LODSPeaKr model queries and view templates for a particular data source or application, you may also want to version control and share them. By forking LODSPeaKr, you can continue to get updates from Alvaro's original LODSPeaKr while maintaining and sharing your model and view additions. This page lists the steps you should take to make a fork of LODSPeaKr.

LODSPeaKr forks

How to make your first fork

How to make your second (and beyond) fork: Example

Step 1: Create a new repos at github.com

Step 2: Set up on your local repository:

  
  mkdir csv2rdf4lod-lodspeakr
  cd csv2rdf4lod-lodspeakr
  git init

# These three are different from what github tells you to do
git remote add alvaro git://github.com/alangrafu/lodspeakr.git
git fetch alvaro
git merge alvaro/master

  git remote add origin [email protected]:timrdf/csv2rdf4lod-lodspeakr.git
  git push -u origin master

Step 3: Change the github URL in utils/install (e.g. install) from git://github.com/alangrafu/lodspeakr.git to your own (e.g. git://github.com/timrdf/csv2rdf4lod-lodspeakr.git).

Step 3.b Change the github URL in utils/install-dev (e.g. install) from [email protected]:alangrafu/lodspeakr.git to your own (e.g. [email protected]:timrdf/csv2rdf4lod-lodspeakr.git). This will let you clone a read-write copy.

Step 4: Make a purl for your install script (e.g. http://purl.org/twc/projects/csv2rdf4lod-lodspeakr/install -> https://raw.github.com/timrdf/csv2rdf4lod-lodspeakr/master/utils/install)

Step 4.b And a purl for your install-dev script (e.g. http://purl.org/twc/projects/csv2rdf4lod-lodspeakr/install-dev -> https://raw.github.com/timrdf/csv2rdf4lod-lodspeakr/master/utils/install-dev)

Step 5: Change the purl in README to http://purl.org/twc/projects/csv2rdf4lod-lodspeakr/install

Step 6: remove views/* models/* components/* static/* from .gitignore

When you want to get the latest from alvaro:

git fetch alvaro
git merge alvaro/master

What is next

Clone this wiki locally