Concept "Ontology Management Script"

From SMW CindyKate by dataspects
Component1617319883
Jump to navigation Jump to search
[edit]
Keywords/Contexts

Smw-cindykate

Annotations
{{#compound_query:Component1617319883Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCaseMotivation;?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Concept "Ontology Management Script";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Concept "Ontology Management Script";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
name=MotivationsDeclaredOnThisPageResultItem|link=none}}
Motivations
Lua error in Module:Motivations at line 23: attempt to concatenate field 'hasReasoning' (a nil value).
[edit]

Content

Notice:

Application Command "smw-cindykate content manage" makes the following variables available to ontology management scripts

@options
@profile

Example ontology management script

For an overview of all methods available to ontology management scripts, see Overview "Testing smw-cindykate".

# Define pages basket 1
  # Initiate a new pages basket
  my_pages_basket_1 = SMWCindyKate::Pages.new(@options)
  # Specify that this basket will be filled with pages selected from a Git repository
  my_git_repo_1 = SMWCindyKate::OntologyRepository.new('/home/user/smwck_repo1/')
  my_git_repo_1.must_be_a_git_repository!
  my_pages_basket_1.from_REPOSITORY(my_git_repo_1)

# Define pages basket 2
  # Initiate a new pages basket
  my_pages_basket_2 = SMWCindyKate::Pages.new(@options)
  # Specify that this basket will be filled with pages selected from a SMW identified by 'smwck_production', which refers to
  # that SMW's profile information provided by @profile, which parses the YAML file provided by "smw-cindykate --profile <smw-profiles.yaml>"
  my_pages_basket_2.from_SMW(@profile, 'smwck_production')

# Populate my_pages_basket_2 (selecting from 'smwck_production' through MediaWiki's api.php)

Examples