source: main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07-GEN-PROBLEM-LOD-LISTS.sh@ 34989

Last change on this file since 34989 was 34989, checked in by davidb, 3 years ago

Making space for new preparation script to generate metadata for missing category entries

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/bash
2
3
4#echo "Copying:"
5#echo " countries-in-esc-by-year.json -> ../import/countries-in-esc-by-year.json"
6
7
8echo ""
9
10echo "Generating Song (titles) problem list: problem-songs.html"
11./DBPEDIA-LOD-SPARQL-QUERY.sh problem-lod-lists/dbpedia-problem-songs.sparql html
12
13echo "Generating Entrant (artists) problem list: problem-entrants.html"
14./DBPEDIA-LOD-SPARQL-QUERY.sh problem-lod-lists/dbpedia-problem-entrants.sparql html
15
16echo "Generating Category in Year problem list: problem-category-in-year.html"
17
18if [ ! -f problem-lod-lists/problem-category-in-year.sparql ] ; then
19 echo " Failed to detect SPARQL query: problem-lod-lists/problem-category-in-year.sparql"
20 echo " Running 'errata-categories/esc-wikipedia-download-and-detect-missing-cat-entries.py' to generate it"
21 echo " ... with output of running the command saved to: errata-categories/output--missing-cat-entries.txt"
22 cd errata-categories && ./esc-wikipedia-download-and-detect-missing-cat-entries.py > output--missing-cat-entries.txt && cd ..
23 if [ $? != 0 ] ; then
24 echo "Error encountered running ./esc-wikipedia-download-and-detect-missing-cat-entries.py" >&2
25 exit 1
26 fi
27fi
28
29
30./DBPEDIA-LOD-SPARQL-QUERY.sh problem-lod-lists/dbpedia-problem-category-in-year.sparql html
31
32
33#echo "Generating *combined* Song and Entrant problem list: problem-songs-and-entrants.html"
34#./DBPEDIA-LOD-SPARQL-QUERY.sh problem-songs-and-entrants.sparql html
35
36
37#echo "Generating *return path* Song and Entrant problem list: problem-return-path-songs-and-entrants.html"
38#./DBPEDIA-LOD-SPARQL-QUERY.sh problem-return-path-songs-and-entrants.sparql html
39
40echo ""
Note: See TracBrowser for help on using the repository browser.