Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
wikidata-lib
Commits
82544e9b
Commit
82544e9b
authored
Oct 10, 2019
by
tobinski
Browse files
Move wikidata-utils into utils folder
parent
f012c80f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/wikidata-utils.ts
→
src/
utils/
wikidata-utils.ts
View file @
82544e9b
import
{
IProperty
,
WikidataProperties
}
from
'
./
utils/
wikidata-properties
'
;
import
{
IProperty
,
WikidataProperties
}
from
'
./wikidata-properties
'
;
/**
/**
* Grab all the subclasses of start and end properties from wikidata.
* Grab all the subclasses of start and end properties from wikidata.
...
...
src/wikidata-normalizer-transformer.ts
View file @
82544e9b
...
@@ -4,7 +4,7 @@ import * as ramda from 'ramda';
...
@@ -4,7 +4,7 @@ import * as ramda from 'ramda';
import
{
Transform
}
from
'
stream
'
;
import
{
Transform
}
from
'
stream
'
;
import
{
LoggerInstance
}
from
'
winston
'
;
import
{
LoggerInstance
}
from
'
winston
'
;
import
{
IPropertyCollection
}
from
'
./utils/property-collection
'
;
import
{
IPropertyCollection
}
from
'
./utils/property-collection
'
;
import
{
timeToDate
}
from
'
./wikidata-utils
'
;
import
{
timeToDate
}
from
'
./
utils/
wikidata-utils
'
;
class
WikidataNormalizerTransformer
extends
Transform
{
class
WikidataNormalizerTransformer
extends
Transform
{
/**
/**
...
...
test/wikidata-normalizer-transformer.spec.ts
View file @
82544e9b
...
@@ -6,7 +6,7 @@ import converter from 'julian-gregorian';
...
@@ -6,7 +6,7 @@ import converter from 'julian-gregorian';
import
{
describe
,
it
}
from
'
mocha
'
;
import
{
describe
,
it
}
from
'
mocha
'
;
import
nconf
=
require
(
'
nconf
'
);
import
nconf
=
require
(
'
nconf
'
);
import
WikidataNormalizerTransformer
from
'
../src/wikidata-normalizer-transformer
'
;
import
WikidataNormalizerTransformer
from
'
../src/wikidata-normalizer-transformer
'
;
import
{
timeToDate
,
wikidataTimePropertiesLoader
}
from
'
../src/wikidata-utils
'
;
import
{
timeToDate
,
wikidataTimePropertiesLoader
}
from
'
../src/
utils/
wikidata-utils
'
;
import
MockReadable
from
'
./mock-readable
'
;
import
MockReadable
from
'
./mock-readable
'
;
import
MockReporter
from
'
./mock-reporter
'
;
import
MockReporter
from
'
./mock-reporter
'
;
import
MockWriteable
from
'
./mock-writeable
'
;
import
MockWriteable
from
'
./mock-writeable
'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment