Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wikidata-dump-processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
wikidata-dump-processor
Commits
b3cf0adf
Commit
b3cf0adf
authored
Aug 7, 2019
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
flush properties tsv after each line
parent
cb3bc9b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/WikiData/Property/Filter.pm
+3
-0
3 additions, 0 deletions
lib/WikiData/Property/Filter.pm
with
3 additions
and
0 deletions
lib/WikiData/Property/Filter.pm
+
3
−
0
View file @
b3cf0adf
package
WikiData::Property::
Filter
;
use
FileHandle
;
my
$TSV_SEP
=
"
\t
";
sub
new
...
...
@@ -48,6 +50,7 @@ sub setup
local
*FO_Prop
;
if
(
open
(
FO_Prop
,
'
>:utf8
',
$fnm_prop
))
{
autoflush
FO_Prop
1
;
print
FO_Prop
join
(
$TSV_SEP
,
@$cols
),
"
\n
"
if
(
defined
(
$cols
));
print
"
writing filter [
$property
] [
$label
] to [
$fnm_prop
]
\n
";
$obj
->
{'
_FO
'}
=
*FO_Prop
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment