Skip to content

Commit

Permalink
removed references to old configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
kouralex committed Sep 7, 2018
1 parent 9bda271 commit a8ec734
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ exclude_paths:
- LICENSE
- README.md
- composer.json
- config.inc.dist
- vocabularies.ttl.dist
- config.ttl.dist
- favicon.ico
- phpdoc.sh
- phpunit.xml
6 changes: 3 additions & 3 deletions controller/WebController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct($model)
// initialize Twig templates
$tmpDir = $model->getConfig()->getTemplateCache();

// check if the cache pointed by config.inc exists, if not we create it.
// check if the cache pointed by config.ttl exists, if not we create it.
if (!file_exists($tmpDir)) {
mkdir($tmpDir);
}
Expand All @@ -41,10 +41,10 @@ public function __construct($model)
$this->twig->addExtension(new Twig_Extensions_Extension_I18n());
// used for setting the base href for the relative urls
$this->twig->addGlobal("BaseHref", $this->getBaseHref());
// setting the service name string from the config.inc
// setting the service name string from the config.ttl
$this->twig->addGlobal("ServiceName", $this->model->getConfig()->getServiceName());

// setting the service custom css file from the config.inc
// setting the service custom css file from the config.ttl
if ($this->model->getConfig()->getCustomCss() !== null) {
$this->twig->addGlobal("ServiceCustomCss", $this->model->getConfig()->getCustomCss());
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ services:
# 1. create dataset
# >curl -I -u admin:admin -XPOST --data "dbName=skosmos&dbType=tdb" -G http://localhost:3030/$/datasets/
# 2. load example vocabulary
# >curl -I -X POST -H Content-Type:text/turtle -T vocabularies.ttl -G http://localhost:3030/skosmos/data
# >curl -I -X POST -H Content-Type:text/turtle -T config.ttl -G http://localhost:3030/skosmos/data
6 changes: 3 additions & 3 deletions model/BaseConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract class BaseConfig extends DataObject
{

/**
* Returns a boolean value based on a literal value from the vocabularies.ttl configuration.
* Returns a boolean value based on a literal value from the config.ttl configuration.
* @param string $property the property to query
* @param boolean $default the default value if the value is not set in configuration
*/
Expand All @@ -22,7 +22,7 @@ protected function getBoolean($property, $default = false)
}

/**
* Returns an array of URIs based on a property from the vocabularies.ttl configuration.
* Returns an array of URIs based on a property from the config.ttl configuration.
* @param string $property the property to query
* @return string[] List of URIs
*/
Expand All @@ -37,7 +37,7 @@ protected function getResources($property)
}

/**
* Returns a boolean value based on a literal value from the vocabularies.ttl configuration.
* Returns a boolean value based on a literal value from the config.ttl configuration.
* @param string $property the property to query
* @param string $default default value
* @param string $lang preferred language for the literal
Expand Down
4 changes: 2 additions & 2 deletions model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function getVocabularyCategories()
}

/**
* Returns the label defined in vocabularies.ttl with the appropriate language.
* Returns the label defined in config.ttl with the appropriate language.
* @param string $lang language code of returned labels, eg. 'fi'
* @return string the label for vocabulary categories.
*/
Expand Down Expand Up @@ -592,7 +592,7 @@ public function getSparqlImplementation($dialect, $endpoint, $graph)
}

/**
* Returns a SPARQL endpoint object using the default implementation set in the config.inc.
* Returns a SPARQL endpoint object using the default implementation set in the config.ttl.
*/
public function getDefaultSparql()
{
Expand Down
24 changes: 12 additions & 12 deletions model/VocabularyConfig.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* VocabularyConfig provides access to the vocabulary configuration defined in vocabularies.ttl.
* VocabularyConfig provides access to the vocabulary configuration defined in config.ttl.
*/
class VocabularyConfig extends BaseConfig
{
Expand Down Expand Up @@ -86,7 +86,7 @@ public function getTitle($lang = null)
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function sortByNotation()
Expand All @@ -95,7 +95,7 @@ public function sortByNotation()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function showChangeList()
Expand Down Expand Up @@ -228,7 +228,7 @@ public function hasMultiLingualProperty($property)
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function getShowHierarchy()
Expand All @@ -237,7 +237,7 @@ public function getShowHierarchy()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function showConceptSchemesInHierarchy()
Expand All @@ -246,7 +246,7 @@ public function showConceptSchemesInHierarchy()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean defaults to true if fetching hasn't been explicitly denied.
*/
public function getExternalResourcesLoading()
Expand All @@ -255,7 +255,7 @@ public function getExternalResourcesLoading()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function getShowLangCodes()
Expand All @@ -264,7 +264,7 @@ public function getShowLangCodes()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return array array of concept class URIs (can be empty)
*/
public function getIndexClasses()
Expand All @@ -273,7 +273,7 @@ public function getIndexClasses()
}

/**
* Returns skosmos:externalProperty values set in the vocabularies.ttl config.
* Returns skosmos:externalProperty values set in the config.ttl config.
* @return array array of external property URIs (can be empty)
*/
public function getExtProperties()
Expand Down Expand Up @@ -372,7 +372,7 @@ public function getHierarchyProperty()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function showNotation()
Expand All @@ -381,7 +381,7 @@ public function showNotation()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function showAlphabeticalIndex()
Expand All @@ -390,7 +390,7 @@ public function showAlphabeticalIndex()
}

/**
* Returns a boolean value set in the vocabularies.ttl config.
* Returns a boolean value set in the config.ttl config.
* @return boolean
*/
public function getShowDeprecated()
Expand Down
4 changes: 2 additions & 2 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
{
"name": "maxhits",
"in": "query",
"description": "Maximum number of results to return. If not given, maxhits will default to 100. (default settable in config.inc)",
"description": "Maximum number of results to return. If not given, maxhits will default to 100. (default settable in config.ttl)",
"required": false,
"type": "integer"
},
Expand Down Expand Up @@ -424,7 +424,7 @@
{
"name": "maxhits",
"in": "query",
"description": "Maximum number of results to return. If not given, maxhits will default to 100. (default settable in config.inc)",
"description": "Maximum number of results to return. If not given, maxhits will default to 100. (default settable in config.ttl)",
"required": false,
"type": "integer"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function testSearchConceptsAndInfoWithOneVocabCaseInsensitivity() {
}

/**
* Test for issue #387: make sure namespaces defined in vocabularies.ttl are used for RDF export
* Test for issue #387: make sure namespaces defined in config.ttl are used for RDF export
* @covers Model::getRDF
*/

Expand Down

0 comments on commit a8ec734

Please sign in to comment.