Renaming files
This commit is contained in:
parent
df9f12365c
commit
aaab3d352c
13 changed files with 128712 additions and 21 deletions
4
Rakefile
4
Rakefile
|
|
@ -48,7 +48,7 @@ file 'data/relationships.ttl' => 'src/map_relationship.rb' do
|
||||||
run 'src/map_relationship.rb'
|
run 'src/map_relationship.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
file 'data/persons-religions.ttl' => 'src/map_religions.rb' do
|
file 'data/persons_religions.ttl' => 'src/map_religions.rb' do
|
||||||
run 'src/map_religions.rb'
|
run 'src/map_religions.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ GENERATED = %w[
|
||||||
data/persons_occupations.ttl
|
data/persons_occupations.ttl
|
||||||
data/persons.ttl
|
data/persons.ttl
|
||||||
data/relationships.ttl
|
data/relationships.ttl
|
||||||
data/persons-religions.ttl
|
data/persons_religions.ttl
|
||||||
data/religions_wikidata.ttl
|
data/religions_wikidata.ttl
|
||||||
data/works.ttl
|
data/works.ttl
|
||||||
].freeze
|
].freeze
|
||||||
|
|
|
||||||
|
|
@ -239,8 +239,8 @@ country:USA a schema:Country ;
|
||||||
country:Vietnam a schema:Country ;
|
country:Vietnam a schema:Country ;
|
||||||
rdfs:label "Vietnam"@en .
|
rdfs:label "Vietnam"@en .
|
||||||
|
|
||||||
country:Wales a schema:Country ;
|
country:Wales_UK a schema:Country ;
|
||||||
rdfs:label "Wales"@en .
|
rdfs:label "Wales (UK)"@en .
|
||||||
|
|
||||||
country:West_Europe a schema:Country ;
|
country:West_Europe a schema:Country ;
|
||||||
rdfs:label "West Europe"@en .
|
rdfs:label "West Europe"@en .
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ country:UAS rdfs:comment "No Wikidata entity found" .
|
||||||
# No Wikidata entity found for USA
|
# No Wikidata entity found for USA
|
||||||
country:USA rdfs:comment "No Wikidata entity found" .
|
country:USA rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
||||||
# No Wikidata entity found for Wales
|
# No Wikidata entity found for Wales (UK)
|
||||||
country:Wales rdfs:comment "No Wikidata entity found" .
|
country:Wales_UK rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
||||||
# No Wikidata entity found for West Europe
|
# No Wikidata entity found for West Europe
|
||||||
country:West_Europe rdfs:comment "No Wikidata entity found" .
|
country:West_Europe rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
|
||||||
10973
data/locations.ttl
Normal file
10973
data/locations.ttl
Normal file
File diff suppressed because it is too large
Load diff
10571
data/migrations.ttl
Normal file
10571
data/migrations.ttl
Normal file
File diff suppressed because it is too large
Load diff
11127
data/organisations.ttl
Normal file
11127
data/organisations.ttl
Normal file
File diff suppressed because it is too large
Load diff
2832
data/personnames.ttl
Normal file
2832
data/personnames.ttl
Normal file
File diff suppressed because it is too large
Load diff
2966
data/persons_occupations.ttl
Normal file
2966
data/persons_occupations.ttl
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,9 +1,9 @@
|
||||||
@prefix tm: <https://daniel.degu.cl/data/theather-migrants/ontology.ttl#> .
|
@prefix person: <https://daniel.degu.cl/data/theater-migrants/persons.ttl#> .
|
||||||
@prefix person: <https://daniel.degu.cl/data/theater-migrants/persons.ttl#> .
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
||||||
@prefix religion: <https://daniel.degu.cl/data/theater-migrants/religions.ttl#> .
|
@prefix religion: <https://daniel.degu.cl/data/theater-migrants/religions.ttl#> .
|
||||||
@prefix schema: <https://schema.org/> .
|
@prefix schema: <https://schema.org/> .
|
||||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
@prefix tm: <https://daniel.degu.cl/data/theather-migrants/ontology.ttl#> .
|
||||||
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||||
|
|
||||||
religion:196 a tm:ReligionAffiliation ;
|
religion:196 a tm:ReligionAffiliation ;
|
||||||
tm:person person:BecMar-00 ;
|
tm:person person:BecMar-00 ;
|
||||||
|
|
@ -67,14 +67,14 @@ religion:232 a tm:ReligionAffiliation ;
|
||||||
tm:person person:LewAug-00 ;
|
tm:person person:LewAug-00 ;
|
||||||
tm:religion religion:Christianity ;
|
tm:religion religion:Christianity ;
|
||||||
tm:dateStartFuzzy "1812" ;
|
tm:dateStartFuzzy "1812" ;
|
||||||
tm:dateStart "1812-01-01"^^xsd:date ;
|
tm:dateStart "1812-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "evangelical" .
|
rdfs:comment "evangelical" .
|
||||||
|
|
||||||
religion:235 a tm:ReligionAffiliation ;
|
religion:235 a tm:ReligionAffiliation ;
|
||||||
tm:person person:LewAug-00 ;
|
tm:person person:LewAug-00 ;
|
||||||
tm:religion religion:Christianity ;
|
tm:religion religion:Christianity ;
|
||||||
tm:dateStartFuzzy "1852" ;
|
tm:dateStartFuzzy "1852" ;
|
||||||
tm:dateStart "1852-01-01"^^xsd:date ;
|
tm:dateStart "1852-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "catholic" .
|
rdfs:comment "catholic" .
|
||||||
|
|
||||||
religion:238 a tm:ReligionAffiliation ;
|
religion:238 a tm:ReligionAffiliation ;
|
||||||
|
|
@ -84,7 +84,7 @@ religion:238 a tm:ReligionAffiliation ;
|
||||||
religion:244 a tm:ReligionAffiliation ;
|
religion:244 a tm:ReligionAffiliation ;
|
||||||
tm:person person:MahGus-00 ;
|
tm:person person:MahGus-00 ;
|
||||||
tm:religion religion:Judaism ;
|
tm:religion religion:Judaism ;
|
||||||
tm:dateStart "1897-02-23"^^xsd:date ;
|
tm:dateStart "1897-02-23"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "converted to Catholicism and was baptized\n“My Judaism, as things are now in the world, prevents me from entering any court theater. - Not Vienna, not Berlin, not Dresden, not Munich is open to me. The same wind blows everywhere. \"(Letter to Friedrich Löhr 1804)" .
|
rdfs:comment "converted to Catholicism and was baptized\n“My Judaism, as things are now in the world, prevents me from entering any court theater. - Not Vienna, not Berlin, not Dresden, not Munich is open to me. The same wind blows everywhere. \"(Letter to Friedrich Löhr 1804)" .
|
||||||
|
|
||||||
religion:245 a tm:ReligionAffiliation ;
|
religion:245 a tm:ReligionAffiliation ;
|
||||||
|
|
@ -108,7 +108,7 @@ religion:250 a tm:ReligionAffiliation ;
|
||||||
religion:253 a tm:ReligionAffiliation ;
|
religion:253 a tm:ReligionAffiliation ;
|
||||||
tm:person person:RehAda-00 ;
|
tm:person person:RehAda-00 ;
|
||||||
tm:religion religion:Christianity ;
|
tm:religion religion:Christianity ;
|
||||||
tm:dateStart "1857-06-12"^^xsd:date ;
|
tm:dateStart "1857-06-12"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "baptised in St Michael's Roman Catholic Church" .
|
rdfs:comment "baptised in St Michael's Roman Catholic Church" .
|
||||||
|
|
||||||
religion:259 a tm:ReligionAffiliation ;
|
religion:259 a tm:ReligionAffiliation ;
|
||||||
|
|
@ -154,10 +154,10 @@ religion:355 a tm:ReligionAffiliation ;
|
||||||
tm:person person:KreHei-00 ;
|
tm:person person:KreHei-00 ;
|
||||||
tm:religion religion:Judaism ;
|
tm:religion religion:Judaism ;
|
||||||
tm:dateStartFuzzy "1871" ;
|
tm:dateStartFuzzy "1871" ;
|
||||||
tm:dateStart "1871-01-01"^^xsd:date ;
|
tm:dateStart "1871-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
tm:dateStartMax "1873" ;
|
tm:dateStartMax "1873" ;
|
||||||
tm:dateEndMin "1873-01-01"^^xsd:date ;
|
tm:dateEndMin "1873-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
tm:dateEndMax "1873-12-31"^^xsd:date ;
|
tm:dateEndMax "1873-12-31"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "He converted to the Catholic faith at the age of 54 as part of the assimilation of wider Jewish circles after the \"Interconfessional Laws\" of 1868 in Austria allowed a change of religion. He had all his children baptised Protestants in the places where they were born and where he had a stage engagement in each case." .
|
rdfs:comment "He converted to the Catholic faith at the age of 54 as part of the assimilation of wider Jewish circles after the \"Interconfessional Laws\" of 1868 in Austria allowed a change of religion. He had all his children baptised Protestants in the places where they were born and where he had a stage engagement in each case." .
|
||||||
|
|
||||||
religion:356 a tm:ReligionAffiliation ;
|
religion:356 a tm:ReligionAffiliation ;
|
||||||
|
|
@ -183,14 +183,14 @@ religion:423 a tm:ReligionAffiliation ;
|
||||||
tm:person person:ZemAle-00 ;
|
tm:person person:ZemAle-00 ;
|
||||||
tm:religion religion:Judaism ;
|
tm:religion religion:Judaism ;
|
||||||
tm:dateStartFuzzy "1899" ;
|
tm:dateStartFuzzy "1899" ;
|
||||||
tm:dateStart "1899-01-01"^^xsd:date ;
|
tm:dateStart "1899-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "In 1899 he resigned from the Israelite religious community because the climate for Jews in Vienna was deteriorating." .
|
rdfs:comment "In 1899 he resigned from the Israelite religious community because the climate for Jews in Vienna was deteriorating." .
|
||||||
|
|
||||||
religion:429 a tm:ReligionAffiliation ;
|
religion:429 a tm:ReligionAffiliation ;
|
||||||
tm:person person:ZemAle-00 ;
|
tm:person person:ZemAle-00 ;
|
||||||
tm:religion religion:Christianity ;
|
tm:religion religion:Christianity ;
|
||||||
tm:dateStartFuzzy "1906" ;
|
tm:dateStartFuzzy "1906" ;
|
||||||
tm:dateStart "1906-01-01"^^xsd:date ;
|
tm:dateStart "1906-01-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
|
||||||
rdfs:comment "converting to Protestantism." .
|
rdfs:comment "converting to Protestantism." .
|
||||||
|
|
||||||
religion:431 a tm:ReligionAffiliation ;
|
religion:431 a tm:ReligionAffiliation ;
|
||||||
|
|
@ -205,3 +205,4 @@ religion:445 a tm:ReligionAffiliation ;
|
||||||
religion:446 a tm:ReligionAffiliation ;
|
religion:446 a tm:ReligionAffiliation ;
|
||||||
tm:person person:HerAde-00 ;
|
tm:person person:HerAde-00 ;
|
||||||
tm:religion religion:Christianity .
|
tm:religion religion:Christianity .
|
||||||
|
|
||||||
|
|
|
||||||
24661
data/relationships.ttl
Normal file
24661
data/relationships.ttl
Normal file
File diff suppressed because it is too large
Load diff
65497
data/works.ttl
Normal file
65497
data/works.ttl
Normal file
File diff suppressed because it is too large
Load diff
63
src/map_person.rb
Executable file
63
src/map_person.rb
Executable file
|
|
@ -0,0 +1,63 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
require_relative 'database'
|
||||||
|
require_relative 'vocabularies'
|
||||||
|
require_relative 'migrants'
|
||||||
|
|
||||||
|
output = File.open(File.join('data', 'persons.ttl'), 'w')
|
||||||
|
|
||||||
|
output.puts prefixes(:wd, :rdfs, :tm, :schema, :person, :location, :xsd)
|
||||||
|
output.puts
|
||||||
|
|
||||||
|
DB[:person].each do |row|
|
||||||
|
id = row[:IDPerson]
|
||||||
|
props = ["a schema:Person"]
|
||||||
|
|
||||||
|
props << "schema:givenName #{ttl_literal(row[:first_name])}" unless row[:first_name].to_s.empty?
|
||||||
|
props << "schema:familyName #{ttl_literal(row[:family_name])}" unless row[:family_name].to_s.empty?
|
||||||
|
props << "tm:religion #{ttl_literal(row[:religion])}" unless row[:religion].to_s.empty?
|
||||||
|
props << "tm:nameType #{ttl_literal(row[:Nametype])}" unless row[:Nametype].to_s.empty?
|
||||||
|
|
||||||
|
case row[:gender]
|
||||||
|
when 'male' then props << "schema:gender schema:Male"
|
||||||
|
when 'female' then props << "schema:gender schema:Female"
|
||||||
|
end
|
||||||
|
|
||||||
|
props << "schema:image <#{row[:imageURL]}>" unless row[:imageURL].to_s.empty?
|
||||||
|
props << "tm:imageSource #{ttl_literal(row[:image_source])}" unless row[:image_source].to_s.empty?
|
||||||
|
props << "schema:hasOccupation #{ttl_literal(row[:profession])}" unless row[:profession].to_s.empty?
|
||||||
|
props << "tm:fuzzyBirthDate #{ttl_literal(row[:fuzzybirthdate])}" unless row[:fuzzybirthdate].to_s.empty?
|
||||||
|
|
||||||
|
props << "schema:birthDate #{ttl_literal(row[:birthdate])}" if row[:birthdate]
|
||||||
|
props << "tm:birthDateMax #{ttl_literal(row[:birthdate_max])}" if row[:birthdate_max]
|
||||||
|
|
||||||
|
props << "tm:birthInfo #{ttl_literal(row[:'Birth Info'])}" unless row[:'Birth Info'].to_s.empty?
|
||||||
|
props << "schema:birthPlace location:#{row[:IDBirthPlace]}" unless row[:IDBirthPlace].to_s.empty?
|
||||||
|
|
||||||
|
props << "tm:fuzzyDeathDate #{ttl_literal(row[:fuzzydeathdate])}" unless row[:fuzzydeathdate].to_s.empty?
|
||||||
|
|
||||||
|
props << "schema:deathDate #{ttl_literal(row[:deathdate])}" if row[:deathdate]
|
||||||
|
props << "tm:deathDateMax #{ttl_literal(row[:deathdate_max])}" if row[:deathdate_max]
|
||||||
|
|
||||||
|
props << "tm:deathInfo #{ttl_literal(row[:'Death Info'])}" unless row[:'Death Info'].to_s.empty?
|
||||||
|
props << "schema:deathPlace location:#{row[:IDDeathPlace]}" unless row[:IDDeathPlace].to_s.empty?
|
||||||
|
|
||||||
|
props << "schema:sameAs <#{row[:Wikipedia]}>" unless row[:Wikipedia].to_s.empty?
|
||||||
|
props << "schema:sameAs wd:#{row[:Wikidata]}" unless row[:Wikidata].to_s.empty?
|
||||||
|
props << "tm:gnd #{ttl_literal(row[:GND])}" unless row[:GND].to_s.empty?
|
||||||
|
props << "tm:lccn #{ttl_literal(row[:LCCN])}" unless row[:LCCN].to_s.empty?
|
||||||
|
props << "tm:viaf #{ttl_literal(row[:VIAF])}" unless row[:VIAF].to_s.empty?
|
||||||
|
props << "tm:cerl #{ttl_literal(row[:CERL])}" unless row[:CERL].to_s.empty?
|
||||||
|
props << "tm:isni #{ttl_literal(row[:ISNI])}" unless row[:ISNI].to_s.empty?
|
||||||
|
props << "tm:snac #{ttl_literal(row[:SNAC])}" unless row[:SNAC].to_s.empty?
|
||||||
|
props << "rdfs:comment #{ttl_literal(row[:comment])}" unless row[:comment].to_s.empty?
|
||||||
|
props << "tm:source #{ttl_literal(row[:Source])}" unless row[:Source].to_s.empty?
|
||||||
|
props << "tm:importSource #{ttl_literal(row[:Importsource])}" unless row[:Importsource].to_s.empty?
|
||||||
|
|
||||||
|
output.puts "person:#{id} #{props.first} ;"
|
||||||
|
props[1..-2].each { |p| output.puts " #{p} ;" }
|
||||||
|
output.puts " #{props.last} ."
|
||||||
|
output.puts
|
||||||
|
end
|
||||||
|
|
||||||
|
output.close
|
||||||
|
|
@ -4,7 +4,7 @@ require_relative 'database'
|
||||||
require_relative 'vocabularies'
|
require_relative 'vocabularies'
|
||||||
require_relative 'migrants'
|
require_relative 'migrants'
|
||||||
|
|
||||||
output = File.open(File.join('data', 'persons-religions.ttl'), 'w')
|
output = File.open(File.join('data', 'persons_religions.ttl'), 'w')
|
||||||
|
|
||||||
output.puts prefixes(:rdfs, :tm, :schema, :person, :religion, :xsd)
|
output.puts prefixes(:rdfs, :tm, :schema, :person, :religion, :xsd)
|
||||||
output.puts
|
output.puts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue