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
baef974a
Commit
baef974a
authored
Dec 21, 2016
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
add counter for P31; reduce the noise on STDOUT
parent
9a83f9fb
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
wdq3.pl
+11
-4
11 additions, 4 deletions
wdq3.pl
with
11 additions
and
4 deletions
wdq3.pl
+
11
−
4
View file @
baef974a
...
@@ -98,6 +98,7 @@ sub parse_authctrl
...
@@ -98,6 +98,7 @@ sub parse_authctrl
my
$line
=
0
;
my
$line
=
0
;
my
$t_start
=
time
();
my
$t_start
=
time
();
my
%p31
;
<
FI
>
;
<
FI
>
;
my
$pos
;
my
$pos
;
...
@@ -131,11 +132,15 @@ sub parse_authctrl
...
@@ -131,11 +132,15 @@ sub parse_authctrl
next
LINE
;
next
LINE
;
}
}
if
(
$j
->
{
P31
}
eq
'
Q5
')
# item is now in focus...
my
(
$p31
)
=
map
{
$j
->
{
$_
}
}
qw(P31)
;
$p31
{
$p31
}
++
;
if
(
$p31
eq
'
Q5
')
{
{
print
__LINE__
,
"
j:
",
main::
Dumper
(
$j
);
#
print __LINE__, " j: ", main::Dumper ($j);
my
@d
=
get_pers_data
(
$j
);
my
@d
=
get_pers_data
(
$j
);
print
__LINE__
,
"
d:
",
main::
Dumper
(
\
@d
);
#
print __LINE__, " d: ", main::Dumper (\@d);
print
FO
join
("
\t
",
@d
),
"
\n
";
print
FO
join
("
\t
",
@d
),
"
\n
";
$fo_lines
++
;
$fo_lines
++
;
...
@@ -145,6 +150,8 @@ sub parse_authctrl
...
@@ -145,6 +150,8 @@ sub parse_authctrl
close
(
FO
);
close
(
FO
);
print
__LINE__
,
"
P31:
",
main::
Dumper
(
\
%p31
);
$fo_lines
;
$fo_lines
;
}
}
...
@@ -166,7 +173,7 @@ sub get_time
...
@@ -166,7 +173,7 @@ sub get_time
{
{
my
$s
=
shift
;
my
$s
=
shift
;
print
"
s=[
$s
]
\n
";
#
print "s=[$s]\n";
return
''
unless
(
$s
);
return
''
unless
(
$s
);
my
$j
=
decode_json
(
$s
);
my
$j
=
decode_json
(
$s
);
...
...
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