UseCase "Inject SMW pages from text files"

From SMW CindyKate - Main
Component153405
Jump to: navigation, search

Content

IsCarriedOutBy OntologyEngineer

Notice:

UseCase "Inject SMW pages from text files" is part of Application "dataspects".


Ontology content injection is always using content managed in a Ontology-Repository.

What can you manage/do regarding/with a Ontology-Repository?

Apply changes to its latest or one of its previous content versions

E.g. if you want to develop the ontology outside of the MediaWiki system context.

Apply changes to its latest content version

You do NOT create a new branch for this.

  1. Check git status for uncommitted changes, and commit them first.
  2. Apply your changes.
  3. Commit your changes.

Apply changes to one of its previous content versions

You DO create a new branch for this, e.g. called "my-alternate-ontology". (See Git Branching - Basic Branching and Merging)

  1. Check git status for uncommitted changes, and commit them first.
  2. Check git log for the commit hash of the content version you plan to develop, e.g. 83a8cee6394b9854b5e9496544e5e117e1640857.
  3. Run git branch my-alternate-ontology 83a8cee6394b9854b5e9496544e5e117e1640857.
  4. Check git branch.
    $ git branch
      master
    * my-alternate-ontology
  5. Apply your changes.
  6. Commit your changes.

Inject its latest (or any previous) content version into a MediaWiki

Injection is denied from a repository that contains uncommitted changes.

Inject the latest content version

  1. Check git status for uncommitted changes, and commit them first.
  2. Check git log --pretty=format:'%H' -n 1 for the latest commit hash, e.g. 95hbcee6394b9854b5e9496544e5e117e1642kfu.
  3. Run smw-cindykate -p test_profile.yml content inject --commit 95hbcee6394b9854b5e9496544e5e117e1642kfu <path/to/Ontology-Repository> <target-mw-identifier>

Inject some previous content version

  1. Check git status for uncommitted changes, and commit them first.
  2. Check git log for the commit hash of the content version you plan to inject, e.g. 83a8cee6394b9854b5e9496544e5e117e1640857.
  3. Run smw-cindykate -p test_profile.yml content inject --commit 83a8cee6394b9854b5e9496544e5e117e1640857 <path/to/Ontology-Repository> <target-mw-identifier>

Share it

Back it up