├── docker ├── mysql │ └── .placeholder └── psql │ └── .placeholder ├── .gitignore ├── .dockerignore ├── tests └── data │ ├── ucc_collateral_codes.csv │ ├── property_type_codes.csv │ ├── country_codes.csv │ ├── real_property_references.csv │ ├── document_control_codes.csv │ ├── real_property_legals.csv │ ├── real_property_master.csv │ └── real_property_parties.csv ├── mysql.dockerfile ├── psql.dockerfile ├── .github └── workflows │ └── docker-test.yml ├── docker-compose.psql.yml ├── docker-compose.mysql.yml ├── docker-compose.test.yml ├── schema ├── postgres.sql ├── sqlite.sql └── mysql.sql ├── Makefile ├── README.md └── LICENSE /docker/mysql/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/psql/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | data 2 | docker 3 | *.db 4 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | LICENSE 2 | VERSION 3 | README.md 4 | download 5 | docker-compose.* 6 | data 7 | docker 8 | tests 9 | -------------------------------------------------------------------------------- /tests/data/ucc_collateral_codes.csv: -------------------------------------------------------------------------------- 1 | RECORD TYPE,UCC COLLATERAL CODE,DESCRIPTION 2 | U,D,TRANSMITTING UTILITIES DBTR 3 | U,R,CROPS/EXTRACTED/COLLATERAL/TIMBER TO BE CUT 4 | U,C,COOPERATIVE 5 | U,F,FIXTURE FILING 6 | U,M,MANUFACTURED HOUSING 7 | U,O,OTHER 8 | U,A,COOPERATIVE WITH ADDENDUM 9 | U,P,PUBLIC FINANCE 10 | -------------------------------------------------------------------------------- /mysql.dockerfile: -------------------------------------------------------------------------------- 1 | FROM mysql:8.0 2 | 3 | RUN apt update \ 4 | && apt update \ 5 | && apt install -y \ 6 | curl \ 7 | make \ 8 | && rm -rf /var/lib/apt/lists/* 9 | 10 | WORKDIR app 11 | 12 | COPY Makefile . 13 | COPY schema/mysql.sql schema/mysql.sql 14 | 15 | ENV MYSQL_DATABASE acris 16 | 17 | ENTRYPOINT ["make"] 18 | CMD ["mysql"] -------------------------------------------------------------------------------- /psql.dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.9-buster 2 | 3 | RUN apt update \ 4 | && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ 5 | && echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ 6 | && apt update \ 7 | && apt install -y postgresql-client \ 8 | && rm -rf /var/lib/apt/lists/* 9 | 10 | WORKDIR app 11 | 12 | COPY Makefile . 13 | COPY schema/postgres.sql schema/postgres.sql 14 | 15 | ENTRYPOINT ["make"] 16 | CMD ["psql"] 17 | -------------------------------------------------------------------------------- /.github/workflows/docker-test.yml: -------------------------------------------------------------------------------- 1 | name: Docker compose tests 2 | 3 | on: [push] 4 | 5 | jobs: 6 | test: 7 | runs-on: ubuntu-latest 8 | 9 | env: 10 | COMPOSE_FILE: docker-compose.test.yml 11 | 12 | steps: 13 | - name: Check out repository 14 | uses: actions/checkout@v2 15 | 16 | - name: Build the images 17 | run: docker-compose build 18 | 19 | - name: Run mysql services 20 | run: docker-compose run mysql 21 | 22 | - name: Run psql services 23 | run: docker-compose run psql 24 | -------------------------------------------------------------------------------- /docker-compose.psql.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | db: 4 | image: postgres:13 5 | ports: 6 | - 5432 7 | volumes: 8 | - type: bind 9 | source: ./docker/psql 10 | target: /var/lib/postgresql/data 11 | environment: 12 | POSTGRES_PASSWORD: pass 13 | POSTGRES_USER: root 14 | PGDATA: /var/lib/postgresql/data/pgdata 15 | 16 | acris-psql: 17 | build: 18 | context: . 19 | dockerfile: psql.dockerfile 20 | # ACRIS_DATASET: psql, psql_real_complete, psql_personal, psql_personal_complete, psql_extras 21 | # See Makefile for latest MySQL options 22 | command: ["${ACRIS_DATASET:-psql}"] 23 | working_dir: /app 24 | volumes: 25 | - type: bind 26 | source: ./data 27 | target: /app/data 28 | environment: 29 | PGHOST: db 30 | PGUSER: root 31 | PGPASSWORD: pass 32 | PGDATABASE: root 33 | depends_on: 34 | - db 35 | 36 | admin: 37 | image: adminer:latest 38 | restart: always 39 | ports: 40 | - 8080:8080 41 | depends_on: 42 | - db 43 | -------------------------------------------------------------------------------- /docker-compose.mysql.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | db: 5 | image: mysql:8.0 6 | command: [ 7 | "--default-authentication-plugin=mysql_native_password", 8 | "--default-storage-engine=MyISAM", 9 | "--local-infile=ON" 10 | ] 11 | ports: 12 | - 3306 13 | volumes: 14 | - ./docker/mysql:/var/lib/mysql 15 | environment: 16 | MYSQL_ROOT_PASSWORD: pass 17 | 18 | acris-mysql: 19 | build: 20 | context: . 21 | dockerfile: mysql.dockerfile 22 | # ACRIS_DATASET: mysql, mysql_real_complete, mysql_personal, mysql_personal_complete, mysql_extras 23 | # See Makefile for latest MySQL options 24 | command: ["${ACRIS_DATASET:-mysql}"] 25 | working_dir: /app 26 | volumes: 27 | - type: bind 28 | source: ./data 29 | target: /app/data 30 | environment: 31 | MYSQL_HOST: db 32 | MYSQL_PWD: pass 33 | MYSQL_DATABASE: acris 34 | depends_on: 35 | - db 36 | 37 | admin: 38 | image: adminer:latest 39 | restart: always 40 | ports: 41 | - 8080:8080 42 | depends_on: 43 | - db 44 | -------------------------------------------------------------------------------- /docker-compose.test.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | mysql: 5 | build: 6 | context: . 7 | dockerfile: mysql.dockerfile 8 | command: ["wait", "mysql", "mysql_test"] 9 | working_dir: /app 10 | volumes: 11 | - type: bind 12 | source: ./tests/data 13 | target: /app/data 14 | environment: 15 | MYSQL_HOST: mydb 16 | MYSQL_PWD: pass 17 | MYSQL_DATABASE: acris 18 | depends_on: 19 | - mydb 20 | 21 | pgdb: 22 | image: postgres:13 23 | ports: 24 | - 5432 25 | environment: 26 | POSTGRES_PASSWORD: pass 27 | POSTGRES_USER: root 28 | PGDATA: /var/lib/postgresql/data/pgdata 29 | 30 | psql: 31 | build: 32 | context: . 33 | dockerfile: psql.dockerfile 34 | command: ["wait", "psql", "psql_test"] 35 | working_dir: /app 36 | volumes: 37 | - type: bind 38 | source: ./tests/data 39 | target: /app/data 40 | environment: 41 | PGHOST: pgdb 42 | PGUSER: root 43 | PGPASSWORD: pass 44 | PGDATABASE: root 45 | depends_on: 46 | - pgdb 47 | 48 | mydb: 49 | image: mysql:8.0 50 | command: [ 51 | "--default-authentication-plugin=mysql_native_password", 52 | "--default-storage-engine=MyISAM", 53 | "--local-infile=ON" 54 | ] 55 | ports: 56 | - 3306 57 | environment: 58 | MYSQL_ROOT_PASSWORD: pass 59 | -------------------------------------------------------------------------------- /tests/data/property_type_codes.csv: -------------------------------------------------------------------------------- 1 | RECORD TYPE,PROPERTY TYPE,DESCRIPTION 2 | G,CA,ADJACENT CONDOMINIUM UNIT TO BE COMBINED 3 | G,FS,4 FAMILY WITH STORE / OFFICE 4 | G,F5,5-6 FAMILY WITH STORE / OFFICE 5 | G,F1,1-3 FAMILY WITH STORE / OFFICE 6 | G,F4,4-6 FAMILY WITH STORE / OFFICE 7 | G,D1,DWELLING ONLY - 1 FAMILY 8 | G,D2,DWELLING ONLY - 2 FAMILY 9 | G,D3,DWELLING ONLY - 3 FAMILY 10 | G,D4,DWELLING ONLY - 4 FAMILY 11 | G,D5,DWELLING ONLY - 5 FAMILY 12 | G,D6,DWELLING ONLY - 6 FAMILY 13 | G,SC,SINGLE RESIDENTIAL CONDO UNIT 14 | G,MC,MULTIPLE RESIDENTIAL CONDO UNT 15 | G,SP,SINGLE RESIDENTIAL COOP UNIT 16 | G,MP,MULTIPLE RESIDENTIAL COOP UNIT 17 | G,CC,COMMERCIAL CONDO UNIT(S) 18 | G,AP,APARTMENT BUILDING 19 | G,OF,OFFICE BUILDING 20 | G,IB,INDUSTRIAL BUILDING 21 | G,RB,RETAIL BUILDING 22 | G,VL,VACANT LAND 23 | G,MU,MULTIPLE PROPERTIES 24 | G,OT,OTHER 25 | G,PA,PRE-ACRIS 26 | G,MR,MAIDS ROOM 27 | G,SR,STORAGE ROOM 28 | G,PS,PARKING SPACE 29 | G,BS,BULK SALE OF CONDOMINIUMS 30 | G,RS,RELIGIOUS STRUCTURE 31 | G,CK,CONDO UNIT WITHOUT KITCHEN 32 | G,RE,REAL ESTATE INVESTMENT TRUST 33 | G,R1,"REAL EST INV TR 1,2,3 FAMILY" 34 | G,R2,REAL EST INV TR 4-6 FAMILY AND COMM. 35 | G,RP,1- 2 FAM WITH ATTCH GAR &/OR VACANT LAND 36 | G,GR,"GARAGE, 1 OR 2 FAMILY ONLY" 37 | G,NA,NOT APPLICABLE 38 | G,EA,ENTERTAINMENT/AMUSEMENT 39 | G,UT,UTILITY 40 | G,VR,RESIDENTIAL VACANT LAND 41 | G,VN,NON-RESIDENTIAL VACANT LAND 42 | G,CP,COMMERCIAL COOP UNIT(S) 43 | G,CR,COMMERCIAL REAL ESTATE 44 | G,TS,TIMESHARE 45 | G,RG,1-2 FAMILY DWELLING WITH ATTACHED GARAGE 46 | G,RV,1-2 FAMILY DWELLING WITH VACANT LAND 47 | G,SA,ADJACENT COOPERATIVE UNIT TO BE COMBINED 48 | G,SM,UNDER $1M CONDO IN COMBINED SALE OF $1M+ 49 | G,HC,HDFC EXEMPTION PROPERTY 50 | -------------------------------------------------------------------------------- /tests/data/country_codes.csv: -------------------------------------------------------------------------------- 1 | RECORD TYPE,COUNTRY CODE,DESCRIPTION 2 | T,AR,ARGENTINA 3 | T,AU,AUSTRALIA 4 | T,AT,AUSTRIA 5 | T,BS,BAHAMAS 6 | T,BE,BELGIUM 7 | T,BO,BOLIVIA 8 | T,BR,BRAZIL 9 | T,CA,CANADA 10 | T,CL,CHILE 11 | T,CN,CHINA 12 | T,CO,COLOMBIA 13 | T,CR,COSTA RICA 14 | T,HR,CROATIA 15 | T,CU,CUBA 16 | T,CZ,"CZECH, REP." 17 | T,DK,DENMARK 18 | T,DO,"DOMINICAN, REP." 19 | T,EC,ECUADOR 20 | T,EG,EGYPT 21 | T,SV,EL SALVADOR 22 | T,FI,FINLAND 23 | T,FR,FRANCE 24 | T,DE,GERMANY 25 | T,GR,GREECE 26 | T,GT,GUATEMALA 27 | T,HN,HONDURAS 28 | T,HK,HONG KONG 29 | T,IN,INDIA 30 | T,IE,IRELAND 31 | T,IL,ISRAEL 32 | T,IT,ITALY 33 | T,JM,JAMAICA 34 | T,JP,JAPAN 35 | T,LU,LUXEMBOURG 36 | T,MX,MEXICO 37 | T,MA,MOROCCO 38 | T,NL,NETHERLANDS 39 | T,NZ,NEW ZEALAND 40 | T,NI,NICARAGUA 41 | T,NG,NIGERIA 42 | T,NO,NORWAY 43 | T,PY,PARAGUAY 44 | T,PE,PERU 45 | T,PL,POLAND 46 | T,PT,PORTUGAL 47 | T,PR,PUERTO RICO 48 | T,RU,RUSSIA 49 | T,SA,SAUDI ARABIA 50 | T,ZA,SOUTH AFRICA 51 | T,ES,SPAIN 52 | T,SE,SWEDEN 53 | T,CH,SWITZERLAND 54 | T,TW,TAIWAN 55 | T,TR,TURKEY 56 | T,UK,UNITED KINGDOM 57 | T,US,UNITED STATES 58 | T,UY,URUGUAY 59 | T,VE,VENEZUELA 60 | T,SD,SUDAN 61 | T,II,ISLE OF ILIAS 62 | T,AF,AFGHANISTAN 63 | T,AL,ALBANIA 64 | T,DZ,ALGERIA 65 | T,AO,ANGOLA 66 | T,AG,ANTIGUA AND BARBUDA 67 | T,AW,ARUBA 68 | T,AZ,AZERBAIJAN 69 | T,BH,BAHRAIN 70 | T,BD,BANGLADESH 71 | T,BB,BARBADOS 72 | T,BY,BELARUS 73 | T,BZ,BELIZE 74 | T,BM,BERMUDA 75 | T,BT,BHUTAN 76 | T,BW,BOTSWANA 77 | T,VG,BRITISH VIRGIN ISLAN 78 | T,BN,BRUNEI DARUSSALAM 79 | T,BG,BULGARIA 80 | T,BF,BURKINA FASO 81 | T,MM,MYANMAR 82 | T,BI,BURUNDI 83 | T,CM,CAMEROON 84 | T,CV,CAPE VERDE 85 | T,KY,CAYMAN ISLANDS 86 | T,KM,COMOROS 87 | T,CG,CONGO 88 | T,CY,CYPRUS 89 | T,YE,YEMEN 90 | T,DJ,DJIBOUTI 91 | T,DM,DOMINICA 92 | T,GQ,EQUATORIAL GUINEA 93 | T,EE,ESTONIA 94 | T,FJ,FIJI 95 | T,GA,GABON 96 | T,GM,GAMBIA 97 | T,GH,GHANA 98 | T,GD,GRENADA 99 | T,GN,GUINEA 100 | T,GW,GUINEA-BISSUA 101 | -------------------------------------------------------------------------------- /schema/postgres.sql: -------------------------------------------------------------------------------- 1 | BEGIN; 2 | 3 | CREATE SCHEMA IF NOT EXISTS :schema; 4 | 5 | SET search_path TO :schema; 6 | 7 | CREATE TABLE IF NOT EXISTS country_codes ( 8 | recordtype text, 9 | countrycode text, 10 | countrydescription text 11 | ); 12 | 13 | CREATE TABLE IF NOT EXISTS document_control_codes ( 14 | recordtype text, 15 | doctype text, 16 | doctypedescription text, 17 | classcodedescription text, 18 | party1type text, 19 | party2type text, 20 | party3type text 21 | ); 22 | 23 | CREATE TABLE IF NOT EXISTS property_type_codes ( 24 | recordtype text, 25 | propertytype text, 26 | typedescription text 27 | ); 28 | 29 | CREATE TABLE IF NOT EXISTS real_property_legals ( 30 | documentid text, 31 | recordtype text, 32 | borough int, 33 | block int, 34 | lot int, 35 | easement boolean, 36 | partiallot text, 37 | airrights boolean, 38 | subterraneanrights boolean, 39 | propertytype text, 40 | streetnumber text, 41 | streetname text, 42 | unit text, 43 | goodthroughdate text 44 | ); 45 | 46 | CREATE TABLE IF NOT EXISTS real_property_master ( 47 | documentid text not null, 48 | recordtype text, 49 | crfn bigint, 50 | borough integer, 51 | doctype text, 52 | docdate text, 53 | docamount numeric, 54 | recordedfiled text, 55 | modifieddate text, 56 | reelyear int, 57 | reelnbr int, 58 | reelpage int, 59 | perctransferred numeric, 60 | goodthroughdate text 61 | ); 62 | 63 | CREATE TABLE IF NOT EXISTS real_property_parties ( 64 | documentid text, 65 | recordtype text, 66 | partytype integer, 67 | name text, 68 | address1 text, 69 | address2 text, 70 | country text, 71 | city text, 72 | state text, 73 | zip text, 74 | goodthroughdate text 75 | ); 76 | 77 | CREATE TABLE IF NOT EXISTS real_property_references ( 78 | documentid text, 79 | recordtype text, 80 | referencebycrfn text, 81 | referencebydocid text, 82 | referencebyreelyear integer, 83 | referencebyreelborough integer, 84 | referencebyreelnbr integer, 85 | referencebyreelpage integer, 86 | not_used_1 boolean, 87 | not_used_2 boolean, 88 | goodthroughdate text 89 | ); 90 | 91 | CREATE TABLE IF NOT EXISTS ucc_collateral_codes ( 92 | recordtype text, 93 | ucccollateralcode text, 94 | codedescription text 95 | ); 96 | 97 | COMMIT; 98 | -------------------------------------------------------------------------------- /schema/sqlite.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS country_codes ( 2 | recordtype varchar, 3 | countrycode varchar, 4 | countrydescription varchar 5 | ); 6 | 7 | CREATE TABLE IF NOT EXISTS document_control_codes ( 8 | recordtype varchar, 9 | doctype varchar, 10 | doctypedescription varchar, 11 | classcodedescription varchar, 12 | party1type varchar, 13 | party2type varchar, 14 | party3type varchar 15 | ); 16 | 17 | CREATE TABLE IF NOT EXISTS property_type_codes ( 18 | recordtype varchar, 19 | propertytype varchar, 20 | typedescription varchar 21 | ); 22 | 23 | CREATE TABLE IF NOT EXISTS real_property_legals ( 24 | documentid bigint, 25 | recordtype varchar, 26 | borough integer, 27 | block integer, 28 | lot integer, 29 | easement boolean, 30 | partiallot varchar, 31 | airrights boolean, 32 | subterraneanrights boolean, 33 | propertytype varchar, 34 | streetnumber varchar, 35 | streetname varchar, 36 | unit varchar, 37 | goodthroughdate date 38 | ); 39 | 40 | CREATE TABLE IF NOT EXISTS real_property_master ( 41 | documentid bigint not null, 42 | recordtype varchar, 43 | crfn bigint, 44 | borough integer, 45 | doctype varchar, 46 | docdate date, 47 | docamount numeric, 48 | recordedfiled date, 49 | modifieddate date, 50 | reelyear integer, 51 | reelnbr integer, 52 | reelpage integer, 53 | perctransferred numeric, 54 | goodthroughdate date 55 | ); 56 | 57 | CREATE TABLE IF NOT EXISTS real_property_parties ( 58 | documentid bigint, 59 | recordtype varchar, 60 | partytype integer, 61 | name varchar, 62 | address1 varchar, 63 | address2 varchar, 64 | country varchar, 65 | city varchar, 66 | state varchar, 67 | zip varchar, 68 | goodthroughdate date 69 | ); 70 | 71 | CREATE TABLE IF NOT EXISTS real_property_references ( 72 | documentid bigint, 73 | recordtype varchar, 74 | referencebycrfn varchar, 75 | referencebydocid varchar, 76 | referencebyreelyear integer, 77 | referencebyreelborough integer, 78 | referencebyreelnbr integer, 79 | referencebyreelpage integer, 80 | not_used_1 boolean, 81 | not_used_2 boolean, 82 | goodthroughdate timestamp 83 | ); 84 | 85 | CREATE TABLE IF NOT EXISTS ucc_collateral_codes ( 86 | recordtype varchar, 87 | ucccollateralcode varchar, 88 | codedescription varchar 89 | ); 90 | -------------------------------------------------------------------------------- /schema/mysql.sql: -------------------------------------------------------------------------------- 1 | BEGIN; 2 | 3 | CREATE TABLE IF NOT EXISTS country_codes ( 4 | recordtype varchar(1), 5 | countrycode varchar(2), 6 | countrydescription text 7 | ); 8 | 9 | CREATE TABLE IF NOT EXISTS document_control_codes ( 10 | recordtype text, 11 | doctype varchar(4), 12 | doctypedescription text, 13 | classcodedescription text, 14 | party1type text, 15 | party2type text, 16 | party3type text 17 | ); 18 | 19 | CREATE TABLE IF NOT EXISTS property_type_codes ( 20 | recordtype text, 21 | propertytype varchar(2) not null, 22 | typedescription text 23 | ); 24 | 25 | CREATE TABLE IF NOT EXISTS real_property_legals ( 26 | documentid varchar(18) not null, 27 | recordtype text, 28 | borough integer, 29 | block integer, 30 | lot integer, 31 | easement boolean, 32 | partiallot text, 33 | airrights boolean, 34 | subterraneanrights boolean, 35 | propertytype text, 36 | streetnumber text, 37 | streetname text, 38 | unit text, 39 | goodthroughdate text 40 | ); 41 | 42 | CREATE TABLE IF NOT EXISTS real_property_master ( 43 | documentid varchar(18) not null, 44 | recordtype text, 45 | crfn bigint, 46 | borough integer, 47 | doctype text, 48 | docdate text, 49 | docamount numeric, 50 | recordedfiled text, 51 | modifieddate text, 52 | reelyear integer, 53 | reelnbr integer, 54 | reelpage integer, 55 | perctransferred numeric, 56 | goodthroughdate text 57 | ); 58 | 59 | CREATE TABLE IF NOT EXISTS real_property_parties ( 60 | documentid varchar(18) not null, 61 | recordtype text, 62 | partytype integer, 63 | name text, 64 | address1 text, 65 | address2 text, 66 | country tinytext, 67 | city text, 68 | state tinytext, 69 | zip text, 70 | goodthroughdate text 71 | ); 72 | 73 | CREATE TABLE IF NOT EXISTS real_property_references ( 74 | documentid varchar(18) not null, 75 | recordtype text, 76 | referencebycrfn text, 77 | referencebydocid text, 78 | referencebyreelyear integer, 79 | referencebyreelborough integer, 80 | referencebyreelnbr integer, 81 | referencebyreelpage integer, 82 | not_used_1 boolean, 83 | not_used_2 boolean, 84 | goodthroughdate timestamp 85 | ); 86 | 87 | CREATE TABLE IF NOT EXISTS ucc_collateral_codes ( 88 | recordtype text, 89 | ucccollateralcode char(1), 90 | codedescription text 91 | ); 92 | 93 | COMMIT; 94 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # ACRIS downloader 2 | # Make tasks for downloading real estate property transactions from NYC's open data site 3 | # Copyright (C) 2015-16 Neil Freeman 4 | 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | SHELL := /bin/sh 18 | 19 | API = https://data.cityofnewyork.us/api/views 20 | 21 | # Download slugs for data files on https://data.cityofnewyork.us 22 | real_property_legals = 8h5j-fqxa 23 | real_property_master = bnx9-e6tj 24 | real_property_parties = 636b-3b5g 25 | real_property_references = pwkr-dpni 26 | real_property_remarks = 9p4w-7npp 27 | 28 | personal_property_legals = uqqa-hym2 29 | personal_property_master = sv7x-dduq 30 | personal_property_parties = nbbg-wtuz 31 | personal_property_references = 6y3e-jcrc 32 | personal_property_remarks = fuzi-5ks9 33 | 34 | country_codes = j2iz-mwzu 35 | document_control_codes = 7isb-wh4c 36 | property_type_codes = 94g4-w6xz 37 | ucc_collateral_codes = q9kp-jvxv 38 | 39 | PERSONAL_BASIC = personal_property_legals \ 40 | personal_property_master \ 41 | personal_property_parties \ 42 | 43 | REAL_BASIC = real_property_legals \ 44 | real_property_master \ 45 | real_property_parties 46 | 47 | PERSONAL_REF = personal_property_references personal_property_remarks 48 | 49 | REAL_REF = real_property_references real_property_remarks 50 | 51 | EXTRAS = country_codes \ 52 | document_control_codes \ 53 | property_type_codes \ 54 | ucc_collateral_codes 55 | 56 | DATA = $(EXTRAS) \ 57 | $(PERSONAL_BASIC) \ 58 | $(PERSONAL_REF) \ 59 | $(REAL_BASIC) \ 60 | $(REAL_REF) 61 | 62 | CSVS = $(foreach a,$(DATA),data/$a.csv) 63 | 64 | IDX_document_control_codes = doctype 65 | IDX_country_codes = countrycode 66 | IDX_property_type_codes = propertytype 67 | IDX_ucc_collateral_codes = ucccollateralcode 68 | 69 | IDX_personal_property_legals = documentid 70 | IDX_personal_property_master = documentid 71 | IDX_personal_property_parties = documentid 72 | IDX_personal_property_references = documentid 73 | IDX_personal_property_remarks = documentid 74 | 75 | IDX_real_property_legals = documentid 76 | IDX_real_property_master = documentid 77 | IDX_real_property_parties = documentid 78 | IDX_real_property_references = documentid 79 | IDX_real_property_remarks = documentid 80 | 81 | MYSQL_DATABASE ?= $(USER) 82 | mysql = mysql $(MYSQL_DATABASE) $(MYSQLFLAGS) 83 | 84 | PGSCHEMA = acris 85 | psql = psql $(PSQLFLAGS) 86 | 87 | SQLITE_DATABASE = acris.db 88 | 89 | sqlite = sqlite3 $(SQLITE_DATABASE) 90 | 91 | curlflags = -XGET -GLsS --compressed 92 | curl = curl $(curlflags) 93 | 94 | .PHONY: clean install download \ 95 | clean-docker test_% \ 96 | sqlite sqlite_% \ 97 | psql psql_% \ 98 | mysql mysql_% 99 | 100 | download: $(foreach a,$(REAL_BASIC) $(EXTRAS),data/$a.csv) 101 | 102 | sqlite: $(foreach a,$(REAL_BASIC),sqlite_$a) | sqlite_extras 103 | sqlite_real_complete: $(foreach a,$(REAL_REF),sqlite_$a) | sqlite 104 | sqlite_personal: $(foreach a,$(PERSONAL_BASIC),sqlite_$a) | sqlite_extras 105 | sqlite_personal_complete: $(foreach a,$(PERSONAL_REF),sqlite_$a) | sqlite_personal 106 | sqlite_extras: $(foreach a,$(EXTRAS),sqlite_$a) 107 | 108 | mysql: $(foreach a,$(REAL_BASIC),mysql_$a) | mysql_extras 109 | mysql_real_complete: $(foreach a,$(REAL_REF),mysql_$a) | mysql 110 | mysql_personal: $(foreach a,$(PERSONAL_BASIC),mysql_$a) | mysql_extras 111 | mysql_personal_complete: $(foreach a,$(PERSONAL_REF),mysql_$a) | mysql_personal 112 | mysql_extras: $(foreach a,$(EXTRAS),mysql_$a) 113 | 114 | psql: $(foreach a,$(REAL_BASIC),psql_$a) | psql_extras 115 | psql_real_complete: $(foreach a,$(REAL_REF),psql_$a) | psql 116 | psql_personal: $(foreach a,$(PERSONAL_BASIC),psql_$a) | psql_extras 117 | psql_personal_complete: $(foreach a,$(PERSONAL_REF),psql_$a) | psql_personal 118 | psql_extras: $(foreach a,$(EXTRAS),psql_$a) 119 | 120 | # MySQL 121 | mysql_%: data/%.csv | mysql_init 122 | $(mysql) --compress --local-infile -e "LOAD DATA LOCAL INFILE '$<' \ 123 | INTO TABLE $(MYSQL_DATABASE).$* \ 124 | FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' \ 125 | LINES TERMINATED BY '\n' IGNORE 1 LINES" 126 | 127 | $(mysql) -e "ALTER TABLE $* ADD INDEX $*_idx ($(IDX_$*))" 128 | 129 | mysql_init: | mysql_create 130 | $(mysql) < schema/mysql.sql 131 | 132 | mysql_create: 133 | mysql $(MYSQLFLAGS) -e "CREATE DATABASE IF NOT EXISTS $(MYSQL_DATABASE)" 134 | 135 | # SQLite 136 | sqlite_%: data/%.csv | sqlite_init 137 | $(sqlite) -separator , ".import $< $* --skip 1" 138 | $(sqlite) "CREATE INDEX $*_idx ON $* ($(IDX_$*))" 139 | 140 | sqlite_init: 141 | $(sqlite) < schema/sqlite.sql 142 | 143 | # Postgres 144 | psql_%: data/%.csv | psql_init 145 | $(psql) -c "\copy $(PGSCHEMA).$* FROM '$<' WITH (FORMAT csv, HEADER on)" 146 | $(psql) -c "CREATE INDEX $*_idx ON $(PGSCHEMA).$* ($(IDX_$*))" 147 | 148 | psql_init: 149 | $(psql) -v schema=$(PGSCHEMA) -f schema/postgres.sql 150 | 151 | psql_create: 152 | -$(psql) $(or $(PGUSER),$(USER)) -c "CREATE DATABASE $(or $(PGDATABASE),$(PGUSER),$(USER))" 153 | 154 | # Data download 155 | .INTERMEDIATE: data/%.csv 156 | $(CSVS): data/%.csv: | data 157 | $(curl) -o $@ $(API)/$($*)/rows.csv -d accessType=DOWNLOAD 158 | 159 | data: ; mkdir -p $@ 160 | 161 | clean: ; rm -rf data/*.csv 162 | 163 | clean-docker: ## Remove data directories created by docker compose 164 | rm -rf docker/psql/pgdata docker/mysql/* 165 | touch docker/mysql/.placeholder 166 | 167 | # Very hacky way to make sure db services are ready in docker compose 168 | wait: ; sleep 30 169 | 170 | test-query = SELECT streetnumber, streetname, documentid, c.typedescription, \ 171 | m.recordtype, d.doctypedescription, docdate, docamount, p1.name party1name, p2.name party2name \ 172 | FROM real_property_legals a \ 173 | LEFT JOIN real_property_master m USING (documentid) \ 174 | LEFT JOIN real_property_parties p1 USING (documentid) \ 175 | LEFT JOIN real_property_parties p2 USING (documentid) \ 176 | LEFT JOIN property_type_codes c USING (propertytype) \ 177 | LEFT JOIN document_control_codes d USING (doctype) \ 178 | WHERE p1.partytype = 1 AND p2.partytype = 2 \ 179 | LIMIT 20; 180 | 181 | mysql_test: ; $(mysql) -e "$(test-query)" 182 | 183 | psql_test: ; PGOPTIONS=--search_path=$(PGSCHEMA) $(psql) -c "$(test-query)" 184 | 185 | sqlite_test: ; $(sqlite) "$(test-query)" 186 | 187 | install: requirements.txt 188 | pip install $(INSTALLFLAGS) --requirement=$< 189 | -------------------------------------------------------------------------------- /tests/data/real_property_references.csv: -------------------------------------------------------------------------------- 1 | DOCUMENT ID,RECORD TYPE,REFERENCE BY CRFN ,REFERENCE BY DOC ID,REFERENCE BY REEL YEAR,REFERENCE BY REEL BOROUGH,REFERENCE BY REEL NBR,REFERENCE BY REEL PAGE,Not_Used_1,Not_Used_2,GOOD THROUGH DATE 2 | 2016030200756001,X,2016000071151,,0,0,0,0,,,03/31/2016 12:00:00 AM 3 | 2016032300623003,X,2008000042614,,0,0,0,0,,,03/31/2016 12:00:00 AM 4 | 2016050600286001,X,2010000233830,,0,0,0,0,,,05/31/2016 12:00:00 AM 5 | 2015122200413001,X,2004000154271,,0,0,0,0,,,12/31/2015 12:00:00 AM 6 | 2015102901564001,X,2010000168870,,0,0,0,0,,,11/30/2015 12:00:00 AM 7 | 2016050600159001,X,2010000267944,,0,0,0,0,,,05/31/2016 12:00:00 AM 8 | 2015102901031001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 9 | 2015103000177001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 10 | 2015110500839005,X,,2015110500839002,0,0,0,0,,,11/30/2015 12:00:00 AM 11 | 2015111101081001,X,2006000464082,,0,0,0,0,,,11/30/2015 12:00:00 AM 12 | 2016031800074004,X,,,1988,2,848,2394,,,03/31/2016 12:00:00 AM 13 | 2015121601753001,X,2004000691328,,0,0,0,0,,,12/31/2015 12:00:00 AM 14 | 2015090200292001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 15 | 2015110500290001,X,2003000532809,,0,0,0,0,,,11/30/2015 12:00:00 AM 16 | 2016030700418001,X,2011000252594,,0,0,0,0,,,03/31/2016 12:00:00 AM 17 | 2016011200181003,X,,,1995,1,2199,1755,,,01/31/2016 12:00:00 AM 18 | 2016050900514001,X,,,2001,3,5282,1814,,,05/31/2016 12:00:00 AM 19 | 2015121600077001,X,2011000315986,,0,0,0,0,,,12/31/2015 12:00:00 AM 20 | 2015122400255001,X,,,2000,4,5474,1913,,,12/31/2015 12:00:00 AM 21 | 2015111200687001,X,,,1989,4,2902,2419,,,11/30/2015 12:00:00 AM 22 | 2016042700840009,X,2015000014738,,0,0,0,0,,,05/31/2016 12:00:00 AM 23 | 2016021700944001,X,2010000372224,,0,0,0,0,,,02/29/2016 12:00:00 AM 24 | 2015120901413001,X,2014000209572,,0,0,0,0,,,12/31/2015 12:00:00 AM 25 | 2016022800147001,X,2005000413466,,0,0,0,0,,,03/31/2016 12:00:00 AM 26 | 2015111000661001,X,2011000347347,,0,0,0,0,,,11/30/2015 12:00:00 AM 27 | 2016050200717001,X,2014000314153,,0,0,0,0,,,05/31/2016 12:00:00 AM 28 | 2015122201077003,X,2006000525887,,0,0,0,0,,,12/31/2015 12:00:00 AM 29 | 2016050600246001,X,,,2001,3,5349,1095,,,05/31/2016 12:00:00 AM 30 | 2015111701311001,X,,,1986,1,1125,1113,,,12/31/2015 12:00:00 AM 31 | 2016022501062003,X,2010000405113,,0,0,0,0,,,03/31/2016 12:00:00 AM 32 | 2015110400387001,X,2014000169205,,0,0,0,0,,,11/30/2015 12:00:00 AM 33 | 2016031800074004,X,,,1987,2,766,251,,,03/31/2016 12:00:00 AM 34 | 2015102801471004,X,2009000179707,,0,0,0,0,,,11/30/2015 12:00:00 AM 35 | 2016042100918003,X,,2016042100918002,0,0,0,0,,,05/31/2016 12:00:00 AM 36 | 2016051800496001,X,2006000426432,,0,0,0,0,,,05/31/2016 12:00:00 AM 37 | 2016062401543004,X,2006000588840,,0,0,0,0,,,07/31/2016 12:00:00 AM 38 | 2015121700040002,X,,,1987,1,1324,554,,,01/31/2016 12:00:00 AM 39 | 2015102900295001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 40 | 2016031800074004,X,,,1987,2,766,256,,,03/31/2016 12:00:00 AM 41 | 2016010401116003,X,2014000032065,,0,0,0,0,,,03/31/2016 12:00:00 AM 42 | 2016030800720013,X,2006000201328,,0,0,0,0,,,03/31/2016 12:00:00 AM 43 | 2015102900834001,X,,,1994,1,2147,422,,,11/30/2015 12:00:00 AM 44 | 2015110200290001,X,2003000155260,,0,0,0,0,,,11/30/2015 12:00:00 AM 45 | 2016060200261005,X,2014000360103,,0,0,0,0,,,06/30/2016 12:00:00 AM 46 | 2016021801363004,X,2011000197573,,0,0,0,0,,,03/31/2016 12:00:00 AM 47 | 2015111701311005,X,2013000418729,,0,0,0,0,,,12/31/2015 12:00:00 AM 48 | 2015110400802001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 49 | 2016021901099001,X,2012000246249,,0,0,0,0,,,02/29/2016 12:00:00 AM 50 | 2016050401346001,X,2014000392219,,0,0,0,0,,,05/31/2016 12:00:00 AM 51 | 2016051201317001,X,2007000010598,,0,0,0,0,,,05/31/2016 12:00:00 AM 52 | 2016030900526003,X,,2016030900526001,0,0,0,0,,,03/31/2016 12:00:00 AM 53 | 2015102901148001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 54 | 2016030700322004,X,,2016030700322003,0,0,0,0,,,03/31/2016 12:00:00 AM 55 | 2015122201707001,X,2012000136107,,0,0,0,0,,,01/31/2016 12:00:00 AM 56 | 2016031000080001,X,,,1981,2,458,509,,,03/31/2016 12:00:00 AM 57 | 2016020900067001,X,2005000555939,,0,0,0,0,,,02/29/2016 12:00:00 AM 58 | 2015120901413001,X,2013000366340,,0,0,0,0,,,12/31/2015 12:00:00 AM 59 | 2016030900169001,X,2012000083914,,0,0,0,0,,,03/31/2016 12:00:00 AM 60 | 2015110201241001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 61 | 2016020201464001,X,2010000036856,,0,0,0,0,,,03/31/2016 12:00:00 AM 62 | 2016062901403001,X,2012000064303,,0,0,0,0,,,07/31/2016 12:00:00 AM 63 | 2015122101353002,X,2015000141858,,0,0,0,0,,,01/31/2016 12:00:00 AM 64 | 2015111701311001,X,,,1937,1,4311,48,,,12/31/2015 12:00:00 AM 65 | 2015110600969001,X,2010000112835,,0,0,0,0,,,11/30/2015 12:00:00 AM 66 | 2015110200257001,X,2011000031424,,0,0,0,0,,,11/30/2015 12:00:00 AM 67 | 2007032701287001,X,2003000017519,,0,0,0,0,,,01/31/2016 12:00:00 AM 68 | 2016050600228001,X,2014000047019,,0,0,0,0,,,05/31/2016 12:00:00 AM 69 | 2015120900265001,X,,,1997,1,2518,939,,,12/31/2015 12:00:00 AM 70 | 2015110300493001,X,2013000333750,,0,0,0,0,,,11/30/2015 12:00:00 AM 71 | 2016021700912001,X,2007000499955,,0,0,0,0,,,02/29/2016 12:00:00 AM 72 | 2015111100242007,X,2005000535018,,0,0,0,0,,,11/30/2015 12:00:00 AM 73 | 2015070901420002,X,2008000131752,,0,0,0,0,,,01/31/2016 12:00:00 AM 74 | 2015122300851001,X,2015000348527,,0,0,0,0,,,01/31/2016 12:00:00 AM 75 | 2015110600717003,X,2015000031142,,0,0,0,0,,,11/30/2015 12:00:00 AM 76 | 2016062401543007,X,2005000284242,,0,0,0,0,,,07/31/2016 12:00:00 AM 77 | 2016051000301001,X,2013000209576,,0,0,0,0,,,05/31/2016 12:00:00 AM 78 | 2015110300031001,X,2012000272696,,0,0,0,0,,,11/30/2015 12:00:00 AM 79 | 2016050900246001,X,2015000134594,,0,0,0,0,,,05/31/2016 12:00:00 AM 80 | 2015110300476001,X,2006000465831,,0,0,0,0,,,11/30/2015 12:00:00 AM 81 | 2015111701311001,X,2010000087318,,0,0,0,0,,,12/31/2015 12:00:00 AM 82 | 2015070901420002,X,2008000283378,,0,0,0,0,,,01/31/2016 12:00:00 AM 83 | 2016012001297002,X,,,2002,3,5859,1407,,,01/31/2016 12:00:00 AM 84 | 2016051000820001,X,2009000162561,,0,0,0,0,,,05/31/2016 12:00:00 AM 85 | 2015122300864001,X,2015000074640,,0,0,0,0,,,12/31/2015 12:00:00 AM 86 | 2016011400050001,X,2013000434644,,0,0,0,0,,,01/31/2016 12:00:00 AM 87 | 2016050600025001,X,,,1996,3,3651,968,,,05/31/2016 12:00:00 AM 88 | 2016062401543006,X,2005000284242,,0,0,0,0,,,07/31/2016 12:00:00 AM 89 | 2016012601507005,X,,,2000,3,4974,36,,,02/29/2016 12:00:00 AM 90 | 2016062901447001,X,2013000096488,,0,0,0,0,,,07/31/2016 12:00:00 AM 91 | 2015111701311001,X,2005000279901,,0,0,0,0,,,12/31/2015 12:00:00 AM 92 | 2015102900845001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 93 | 2015110200257001,X,2010000371245,,0,0,0,0,,,11/30/2015 12:00:00 AM 94 | 2015111200719001,X,2011000444566,,0,0,0,0,,,11/30/2015 12:00:00 AM 95 | 2016050600154001,X,2003000430128,,0,0,0,0,,,05/31/2016 12:00:00 AM 96 | 2015102901013001,X,,,0,5,0,0,,,11/30/2015 12:00:00 AM 97 | 2015122100467001,X,2014000292614,,0,0,0,0,,,12/31/2015 12:00:00 AM 98 | 2015083101314001,X,2009000000070,,0,0,0,0,,,11/30/2015 12:00:00 AM 99 | 2016062400395001,X,2008000445978,,0,0,0,0,,,07/31/2016 12:00:00 AM 100 | 2015111001013001,X,2015000359521,,0,0,0,0,,,11/30/2015 12:00:00 AM 101 | -------------------------------------------------------------------------------- /tests/data/document_control_codes.csv: -------------------------------------------------------------------------------- 1 | RECORD TYPE,DOC. TYPE,DOC. TYPE DESCRIPTION,CLASS CODE DESCRIPTION,PARTY1 TYPE,PARTY2 TYPE,PARTY3 TYPE 2 | D,AGMT,AGREEMENT,MORTGAGES & INSTRUMENTS,PARTY 1,PARTY 2, 3 | D,AMFL,AMENDMENT OF FEDERAL LIEN,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 4 | D,ASPM,ASSUMPTION OF MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 5 | D,ASST,"ASSIGNMENT, MORTGAGE",MORTGAGES & INSTRUMENTS,ASSIGNOR/OLD LENDER,ASSIGNEE/NEW LENDER, 6 | D,ASTU,UNIT ASSIGNMENT,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 7 | D,ASUM,UCC3 ASSUMPTION,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 8 | D,BOND,BOND,OTHER DOCUMENTS,DEBTOR,SECURED PARTY, 9 | D,BRUP,UCC3 BANKRUPTCY,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 10 | D,CERR,CERTIFICATE OF REDUCTION,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 11 | D,CNFL,CONTINUATION OF FEDERAL LIEN,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 12 | D,CERT,CERTIFICATE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 13 | D,CNTR,CONTRACT OF SALE,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 14 | D,CODP,CONDEMNATION PROCEEDINGS,DEEDS AND OTHER CONVEYANCES,PARTY 1,, 15 | D,CONS,CONSENT,OTHER DOCUMENTS,PARTY 1,, 16 | D,CONT,UCC3 CONTINUATION,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 17 | D,CTOR,COURT ORDER,OTHER DOCUMENTS,PARTY 1/GRANTOR,PARTY 2/GRANTEE, 18 | D,DCTO,COURT ORDER ADVERSE POSS.,DEEDS AND OTHER CONVEYANCES,PARTY 1,PARTY 2, 19 | D,DECL,DECLARATION,OTHER DOCUMENTS,PARTY 1,PARTY 2, 20 | D,DEED,DEED,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 21 | D,DEMM,DECLARATION OF MODIFI OF MRT,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 22 | D,DTL,DISCHARGE OF TAX LIEN,OTHER DOCUMENTS,SECURED PARTY,, 23 | D,EASE,EASEMENT,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 24 | D,FL,FEDERAL LIEN-IRS,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 25 | D,FTL,"FEDERAL LIEN, OTHER",UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 26 | D,IDED,IN REM DEED,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 27 | D,INIC,INITIAL COOP UCC1,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY,ASSIGNEE 28 | D,INIT,INITIAL UCC1,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY,ASSIGNEE 29 | D,JUDG,JUDGMENT,OTHER DOCUMENTS,PARTY 1,PARTY 2, 30 | D,LDMK,LANDMARK DESIGNATION,OTHER DOCUMENTS,PARTY 1,PARTY 2, 31 | D,LEAS,LEASE,DEEDS AND OTHER CONVEYANCES,LESSOR/LANDLORD,LESSEE/TENANT, 32 | D,LIC,LICENSE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 33 | D,LTPA,LETTERS PATENT,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 34 | D,MAPS,MAPS,OTHER DOCUMENTS,PARTY 1,, 35 | D,MERG,MERGER,OTHER DOCUMENTS,PARTY 1,PARTY 2, 36 | D,MISC,MISCELLANEOUS,OTHER DOCUMENTS,PARTY 1,PARTY 2, 37 | D,MMTG,MASTER MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGEE/LENDER,, 38 | D,MTGE,MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGOR/BORROWER,MORTGAGEE/LENDER, 39 | D,PAT,POWER OF ATTORNEY,OTHER DOCUMENTS,PARTY ONE,PARTY TWO, 40 | D,PRFL,PARTIAL RELEASE OF FED LIEN,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 41 | D,PSAT,PARTIAL SATISFACTION,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 42 | D,PSGN,UCC3 PARTIAL ASSIGNMENT,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 43 | D,REL,RELEASE,MORTGAGES & INSTRUMENTS,PARTY 1,PARTY 2, 44 | D,RFL,RELEASE OF FEDERAL LIEN,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 45 | D,RESO,RESOLUTION,OTHER DOCUMENTS,PARTY 1,PARTY 2, 46 | D,RFTL,RELEASE OF FEDERAL TAX LIEN,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 47 | D,RLSE,UCC3 RELEASE/UCC AMENDMENT,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 48 | D,RPAT,REVOCATION OF POWER OF ATTORNE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 49 | D,RTXL,RELEASE OF ESTATE TAX LIEN,OTHER DOCUMENTS,DECEDENT,, 50 | D,SAGE,SUNDRY AGREEMENT,OTHER DOCUMENTS,PARTY 1,PARTY 2, 51 | D,SAT,SATISFACTION OF MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 52 | D,SMIS,SUNDRY MISCELLANEOUS,OTHER DOCUMENTS,PARTY 1,, 53 | D,SMTG,SUNDRY MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 54 | D,STP,STREET PROCEDURE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 55 | D,SUBL,SUBORDINATION OF LEASE,DEEDS AND OTHER CONVEYANCES,PARTY 1,PARTY 2, 56 | D,SUBO,UCC3 SUBORDINATION,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 57 | D,TLS,TAX LIEN SALE CERTIFICATE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 58 | D,TERM,UCC3 TERMINATION,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 59 | D,TERT,TERMINATION OF TRUST,OTHER DOCUMENTS,PARTY 1,PARTY 2, 60 | D,UCC1,UNIFORM COMMERCIAL CODE 1,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY,ASSIGNEE 61 | D,UCC3,UNIFORM COMMERCIAL CODE 3,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 62 | D,VAC,VACATE ORDER,DEEDS AND OTHER CONVEYANCES,PARTY 1,, 63 | D,WILL,CERTIFIED COPY OF WILL,OTHER DOCUMENTS,PARTY 1,PARTY 2, 64 | D,ASGN,UCC3 ASSIGNMENT,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY,NEW SECURED PARTY 65 | D,ASSTO,ASSIGNMENT OF LEASE,OTHER DOCUMENTS,PARTY 1,PARTY 2, 66 | D,WSAT,WITHHELD SATISFACTION,MORTGAGES & INSTRUMENTS,MORTGAGER/BORROWER,MORTGAGEE/LENDER, 67 | D,RETT,NYS REAL ESTATE TRANSFER TAX,OTHER DOCUMENTS,GRANTOR/SELLER,GRANTEE/BUYER, 68 | D,RPTT,NYC REAL PROPERTY TRANSFER TAX,OTHER DOCUMENTS,GRANTOR/SELLER,GRANTEE/BUYER, 69 | D,CDEC,CONDO DECLARATION,DEEDS AND OTHER CONVEYANCES,PARTY 1,, 70 | D,AL&R,ASSIGNMENT OF LEASES AND RENTS,MORTGAGES & INSTRUMENTS,ASSIGNOR,ASSIGNEE, 71 | D,DEEDO,"DEED, OTHER",DEEDS AND OTHER CONVEYANCES,GRANTOR,GRANTEE, 72 | D,AMTX,ADDITIONAL MORTGAGE TAX,MORTGAGES & INSTRUMENTS,PAYER,PARTY TWO, 73 | D,AMND,UCC3 AMENDMENT,UCC AND FEDERAL LIENS,DEBTOR,SECURED PARTY, 74 | D,AMTL,AMENDMENT OF TAX LIEN,OTHER DOCUMENTS,PARTY 1,PARTY 2, 75 | D,ATL,ASSIGNMENT OF TAX LIEN,OTHER DOCUMENTS,PARTY 1,PARTY 2, 76 | D,RPTT&RET,BOTH RPTT AND RETT,OTHER DOCUMENTS,GRANTOR/SELLER,GRANTEE/BUYER, 77 | D,CORR,CORRECTION DOC-OFFICE USE ONLY,OTHER DOCUMENTS,PARTY 1,PARTY 2,PARTY 3 78 | D,CORP,UCC 5 CORRECTION STATEMENT,UCC AND FEDERAL LIENS,PARTY 1,PARTY 2,PARTY 3 79 | D,ZONE,ZONING LOT DESCRIPTION,OTHER DOCUMENTS,PARTY ONE,, 80 | D,AALR,ASGN OF ASGN OF L&R,MORTGAGES & INSTRUMENTS,ASSIGNOR,ASSIGNEE, 81 | D,CALR,CANCEL/TERM ASGN L&R,OTHER DOCUMENTS,PARTY ONE,PARTY TWO, 82 | D,ADEC,AMENDED CONDO DECLARATION,OTHER DOCUMENTS,PARTY ONE,, 83 | D,LOCC,LIEN OF COMMON CHARGES,OTHER DOCUMENTS,PARTY ONE/DEBTOR,PARTY TWO/SECURED PA, 84 | D,TOLCC,TERM OF LIEN OF COMMON CHARGES,OTHER DOCUMENTS,PARTY ONE,PARTY TWO, 85 | D,DEVR,DEVELOPMENT RIGHTS,DEEDS AND OTHER CONVEYANCES,PARTY ONE,PARTY TWO, 86 | D,DECM,DECLARATION OF MERGER,DEEDS AND OTHER CONVEYANCES,PARTY ONE,PARTY TWO, 87 | D,MLEA,MEMORANDUM OF LEASE,DEEDS AND OTHER CONVEYANCES,LESSOR,LESSEE, 88 | D,MCON,MEMORANDUM OF CONTRACT,DEEDS AND OTHER CONVEYANCES,PARTY ONE,PARTY TWO, 89 | D,M&CON,MORTGAGE AND CONSOLIDATION,MORTGAGES & INSTRUMENTS,MORTGAGOR,MORTGAGEE, 90 | D,SPRD,MORTGAGE SPREADER AGREEMENT,MORTGAGES & INSTRUMENTS,PARTY ONE/MORTGAGOR,PARTY TWO/MORTGAGEE, 91 | D,TL&R,TERMINATION OF ASSIGN OF L&R,OTHER DOCUMENTS,PARTY ONE,PARTY TWO, 92 | D,SUBM,SUBORDINATION OF MORTGAGE,MORTGAGES & INSTRUMENTS,PARTY ONE,PARTY TWO, 93 | D,PREL,PARTIAL RELEASE OF MORTGAGE,MORTGAGES & INSTRUMENTS,PARTY ONE,PARTY TWO, 94 | D,ACON,ASSIGN/TERM OF CONTRACT/BID,DEEDS AND OTHER CONVEYANCES,PARTY ONE,PARTY TWO, 95 | D,CORRD,CORRECTION DEED,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 96 | D,CORRM,CORRECTION MORTGAGE,MORTGAGES & INSTRUMENTS,MORTGAGOR/BORROWER,MORTGAGEE/LENDER, 97 | D,CONDEED,CONFIRMATORY DEED,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 98 | D,REIT,REAL ESTATE INV TRUST DEED,DEEDS AND OTHER CONVEYANCES,GRANTOR/SELLER,GRANTEE/BUYER, 99 | D,TERL,TERMINATION OF LEASE OR MEMO,OTHER DOCUMENTS,LESSOR,LESSEE, 100 | D,ESTL,ESTOPPEL FOR OFFICE USE ONLY,OTHER DOCUMENTS,MORTGAGOR,NYC, 101 | -------------------------------------------------------------------------------- /tests/data/real_property_legals.csv: -------------------------------------------------------------------------------- 1 | DOCUMENT ID,RECORD TYPE,BOROUGH,BLOCK,LOT,EASEMENT,PARTIAL LOT,AIR RIGHTS,SUBTERRANEAN RIGHTS,PROPERTY TYPE,STREET NUMBER,STREET NAME,UNIT,GOOD THROUGH DATE 2 | 2015080400606005,L,3,55,1001,N,E,N,N,CR,79,BRIDGE STREET,COM-1,08/31/2015 3 | 2015080400346005,L,3,1662,47,N,E,N,N,D2,186,PATCHEN AVENUE,,08/31/2015 4 | 2015072400749001,L,5,2840,148,N,E,N,N,D1,99,GREENFIELD AVENUE,,08/31/2015 5 | 2015080601003004,L,2,5792,449,N,E,N,N,AP,531,WEST 235 STREET,,08/31/2015 6 | 2015072300597013,L,1,1009,37,N,E,N,N,TS,102,WEST 57TH STREET,TIMES,08/31/2015 7 | 2015081900388001,L,4,3097,1457,N,E,N,N,BS,65-20,BOOTH STREET,3K,08/31/2015 8 | 2015072901561001,L,3,1124,1403,N,E,N,N,SC,951,PACIFIC STREET,3,08/31/2015 9 | 2015072400526001,L,3,1618,35,N,E,N,N,CR,1003,GREENE AVENUE,,08/31/2015 10 | 2015072201084001,L,1,857,1216,N,E,N,N,SC,400,PARK AVENUE SOUTH,25A,08/31/2015 11 | 2015080700641002,L,4,4565,58,N,E,N,N,D1,14-36,157TH STREET,,08/31/2015 12 | 2015072201461002,L,4,5042,1450,N,E,N,N,SC,133-47,SANFORD AVE,7H,08/31/2015 13 | 2015073100745001,L,1,16,1225,N,E,N,N,SC,377,RECTOR PLACE,10L,08/31/2015 14 | 2015040300507001,L,3,5189,12,N,E,N,N,AP,2500,BEDFORD AVENUE,,08/31/2015 15 | 2015080600754001,L,1,890,1330,N,E,N,N,SP,155,EAST 34TH STREET,20E,08/31/2015 16 | 2015082300034001,L,2,4253,78,N,E,N,N,OT,,,,08/31/2015 17 | 2015071501010002,L,3,2135,1717,N,E,N,N,SC,40,SOUTH 9 STREET,6C,08/31/2015 18 | 2015072700195001,L,1,1363,31,N,E,N,N,SP,434,EAST 52ND STREET,10G,08/31/2015 19 | 2014032000260005,L,3,1537,5,N,E,N,N,D3,2011A,FULTON STREET,,08/31/2015 20 | 2015080700410002,L,1,570,1207,N,E,N,N,SC,12,EAST 13TH STREET,8,08/31/2015 21 | 2015080301176007,L,1,229,22,N,E,N,N,CR,75,GRAND STREET,,08/31/2015 22 | 2015080500384002,L,3,3375,3,N,E,N,N,F1,519,EVERGREEN AVENUE,,08/31/2015 23 | 2015081300741001,L,2,5518,238,N,E,N,N,AP,226A,REYNOLDS AVENUE,,08/31/2015 24 | 2015080400284002,L,4,5020,1264,N,E,N,N,PS,142-28,38TH AVENUE,P-37,08/31/2015 25 | 2015081000506002,L,1,1398,1164,N,E,N,N,SC,188,EAST 64TH STREET,1705,08/31/2015 26 | 2015080400315001,L,3,4773,73,N,E,N,N,AP,669,EAST 52ND STREET,,08/31/2015 27 | 2015080601088003,L,1,569,24,N,E,N,N,CR,88,UNIVERSITY PLACE,,08/31/2015 28 | 2015081901674001,L,4,136,18,N,E,N,N,OT,41-31,47TH STREET,,08/31/2015 29 | 2015080601082002,L,3,5372,44,N,E,N,N,AP,564,EAST 4TH STREET,,08/31/2015 30 | 2015082300037001,L,4,1929,69,N,E,N,N,OT,,,,08/31/2015 31 | 2015081100586001,L,4,21,1156,N,E,N,N,SC,46-30,CENTER BOULEVARD,1508,08/31/2015 32 | 2015073101554004,L,1,1438,3643,N,E,N,N,SC,300,EAST 64TH STREET,12C,08/31/2015 33 | 2015072901561002,L,3,1124,1402,N,E,N,N,SC,951,PACIFIC STREET,2,08/31/2015 34 | 2015080300566003,L,4,6950,30,N,E,N,N,D1,69-03,175TH STREET,,08/31/2015 35 | 2015072300683003,L,3,685,138,N,E,N,N,D2,817A,5TH AVENUE,,08/31/2015 36 | 2015080701301002,L,4,2224,1108,N,E,N,N,SC,108-20,71ST AVENUE,2E,08/31/2015 37 | 2015072300086001,L,4,3893,12,N,E,N,N,D1,89-49,70TH AVENUE,,08/31/2015 38 | 2015080300299002,L,1,817,1236,N,E,N,N,SC,35,WEST 15TH STREET,15B,08/31/2015 39 | 2015081800672001,L,1,1458,1202,N,E,N,N,SP,425,EAST 63 STREET,W5E,08/31/2015 40 | 2015072801428003,L,3,296,8,N,E,N,N,D1,361,HENRY ST,,08/31/2015 41 | 2015081401154001,L,4,1957,40,N,E,N,N,D3,59-19,XENIA STREET,,08/31/2015 42 | 2015071300994001,L,2,5796,125,N,E,N,N,D3,3638,OXFORD AVENUE,,08/31/2015 43 | 2015073101558001,L,4,13677,49,N,E,N,N,D2,149-44,257TH STREET,,08/31/2015 44 | 2015082300035001,L,3,1233,9,N,E,N,N,OT,,,,08/31/2015 45 | 2015082401745003,L,4,9430,55,N,E,N,N,D1,101-43,112TH STREET,,08/31/2015 46 | 2015071301268009,L,2,2878,170,N,E,N,N,AP,1710,ANDREWS AVENUE SOUTH,,08/31/2015 47 | 2015082300029001,L,4,5024,1149,N,E,N,N,OT,,,,08/31/2015 48 | 2015061601106003,L,3,6979,100,N,E,N,N,AP,3521,NEPTUNE AVENUE,334,08/31/2015 49 | 2015072800725002,L,3,3421,50,N,E,N,N,D3,77,SCHAEFER STREET,,08/31/2015 50 | 2015080400400002,L,3,1973,1002,N,E,N,N,SC,88,QUINCY STREET,2,08/31/2015 51 | 2015072800405002,L,1,2046,1040,N,E,N,N,SC,305,WEST 150 STREET,405,08/31/2015 52 | 2015080700942005,L,3,1217,1145,N,E,N,N,AP,954,BERGEN STREET,P9,08/31/2015 53 | 2015072400576001,L,4,16273,29,N,E,N,N,D1,241,BEACH 139 STREET,,08/31/2015 54 | 2015080500784001,L,3,1092,30,N,E,N,N,D2,502,9TH STREET,,08/31/2015 55 | 2015082000144003,L,1,480,1204,N,E,N,N,SC,199,MOTT STREET,3A,08/31/2015 56 | 2015080500129001,L,3,5219,29,N,E,N,N,AP,1060,OCEAN AVENUE,,08/31/2015 57 | 2015081100531002,L,1,552,1204,N,E,N,N,SC,135,WEST 4TH STREET,2E,08/31/2015 58 | 2015072800761005,L,1,146,1025,N,E,N,N,SC,100,READE STREET,6-D,08/31/2015 59 | 2015081300453001,L,2,4128,2,N,E,N,N,AP,1026,RHINELANDER AVENUE,,08/31/2015 60 | 2015081701114002,L,3,4106,67,N,E,N,N,D2,62,HEMLOCK STREET,,08/31/2015 61 | 2015082401493002,L,3,8482,17,N,E,N,N,D1,1855,EAST 38TH STREET,,08/31/2015 62 | 2015080400284003,L,4,5020,1221,N,E,N,N,SC,142-28,38TH AVENUE,9-C,08/31/2015 63 | 2015072700970002,L,3,8756,12,N,E,N,N,D1,130,NORFOLK STREET,,08/31/2015 64 | 2015073100905001,L,4,2250,1,N,E,N,N,SP,72-35,112 STREET,9G,08/31/2015 65 | 2015081801269002,L,4,12367,227,N,E,N,N,D2,170-33,118TH AVENUE,,08/31/2015 66 | 2015081700921002,L,3,2266,16,N,E,N,N,AP,380,WALLABOUT STREET,,08/31/2015 67 | 2015072301365042,L,1,1006,1303,N,E,N,N,CC,1335,AVENUE OF THE AMERICAS,HU2,08/31/2015 68 | 2015081300360001,L,3,5507,24,N,E,N,N,D1,2044,58th STREET,,08/31/2015 69 | 2015072001386001,L,1,218,1006,N,E,N,N,SC,88,LAIGHT STREET,6,08/31/2015 70 | 2015080700865001,L,3,630,22,N,E,N,N,CR,158-160,17TH STREET,,08/31/2015 71 | 2015081201377001,L,4,9549,75,N,P,N,N,D1,107-13,111th STREET,,08/31/2015 72 | 2015080700333001,L,4,6409,30,N,E,N,N,D1,142-08,59 AVENUE,,08/31/2015 73 | 2015070700765001,L,5,3750,1021,N,E,N,N,SC,576,DONGAN HILLS AVENUE,21A2,08/31/2015 74 | 2015080300834006,L,2,3772,34,N,E,N,N,D4,1506,EAST 172 STREET,,08/31/2015 75 | 2015071401035005,L,1,869,16,N,E,N,N,CR,270,MADISON AVENUE,,08/31/2015 76 | 2015073000597001,L,1,1171,3253,N,E,N,N,SC,120,RIVERSIDE BOULEVARD,10U,08/31/2015 77 | 2015081100730001,L,4,11166,82,N,E,N,N,D1,220-20,105TH AVENUE,,08/31/2015 78 | 2015052100878001,L,4,14240,1331,N,E,N,N,RG,N/A 104TH,STREET,,08/31/2015 79 | 2015080501440001,L,4,7039,14,N,E,N,N,RG,82-31,164TH PLACE,,08/31/2015 80 | 2015081100064001,L,4,3201,3,N,E,N,N,RG,96-06,68th AVENUE,,08/31/2015 81 | 2015081300094001,L,3,2383,1258,N,E,N,N,SR,14,HOPE STREET,S17,08/31/2015 82 | 2015072900932001,L,3,5664,26,N,E,N,N,AP,1454,52ND STREET,,08/31/2015 83 | 2015082300035001,L,3,3771,51,N,E,N,N,OT,,,,08/31/2015 84 | 2015072801422004,L,1,850,1223,N,E,N,N,SC,280,PARK AVENUE SOUTH,4F,08/31/2015 85 | 2015082300035001,L,3,3382,58,N,E,N,N,OT,,,,08/31/2015 86 | 2015081300027001,L,1,280,36,N,E,N,N,D1,49,EAST BROADWAY,,08/31/2015 87 | 2015082300036001,L,3,1020,19,N,E,N,N,OT,,,,08/31/2015 88 | 2015081900918001,L,3,5916,78,N,E,N,N,D2,103,74TH STREET,,08/31/2015 89 | 2015072300570001,L,1,894,1730,N,E,N,N,SC,155,EAST 38TH STREET,4H,08/31/2015 90 | 2015080700008002,L,3,7663,80,N,E,N,N,D1,1372,EAST 28TH STREET,,08/31/2015 91 | 2015071500376003,L,1,1438,3640,N,E,N,N,SC,300,EAST 64TH STREET,11D,08/31/2015 92 | 2015081100314001,L,3,249,1104,N,E,N,N,SC,166,MONTAGUE STREET,2B,08/31/2015 93 | 2015073001132001,L,1,491,1392,N,E,N,N,SC,246,SPRING STREET,2512,08/31/2015 94 | 2015082500058001,L,4,9483,11,N,E,N,N,D2,134-22,97th AVENUE,,08/31/2015 95 | 2015080400862001,L,3,8654,13,N,E,N,N,D2,2411,MILL AVENUE,,08/31/2015 96 | 2015071000287001,L,5,258,63,N,E,N,N,D1,939,BARD AVENUE,,08/31/2015 97 | 2015072801379001,L,3,8661,73,N,E,N,N,AP,2963,OCEAN PARKWAY,,08/31/2015 98 | 2015072901455001,L,4,7632,2,N,E,N,N,SP,218-15,73RD AVENUE,UPPER,08/31/2015 99 | 2015081001578001,L,3,3519,126,N,E,N,N,D1,497,THOMAS S BOYLAND ST,,08/31/2015 100 | 2015081800810002,L,3,2357,1020,N,E,Y,N,PS,91,METROPOLITAN AVENUE,P2,08/31/2015 101 | -------------------------------------------------------------------------------- /tests/data/real_property_master.csv: -------------------------------------------------------------------------------- 1 | DOCUMENT ID,RECORD TYPE,CRFN,BOROUGH,DOC. TYPE,DOC. DATE,DOC. AMOUNT,RECORDED / FILED,MODIFIED DATE,REEL YEAR,REEL NBR,REEL PAGE,% TRANSFERRED,GOOD THROUGH DATE 2 | 2017010501405001,A,2017000012454,1,SAT,10/27/2016,0,01/10/2017,01/10/2017,0,0,0,0,01/31/2017 3 | 2017011101293006,A,2017000018380,1,TL&R,01/10/2017,0,01/12/2017,01/12/2017,0,0,0,0,01/31/2017 4 | 2017012300585021,A,2017000029436,1,PAT,09/27/2016,0,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 5 | 2017011801183001,A,2017000026509,1,MTGE,12/27/2016,12521.78,01/19/2017,01/19/2017,0,0,0,0,01/31/2017 6 | 2017010901191102,A,2017000029668,1,EASE,12/28/2016,0,01/23/2017,01/23/2017,0,0,0,100,01/31/2017 7 | 2017012800045009,A,2017000040867,1,RPTT&RET,12/31/2016,0,01/30/2017,01/30/2017,0,0,0,100,01/31/2017 8 | 2017010400104002,A,2017000004243,1,ASST,12/07/2016,0,01/04/2017,01/04/2017,0,0,0,0,01/31/2017 9 | 2016122200494001,A,2017000002407,4,SAT,12/21/2016,0,01/04/2017,01/04/2017,0,0,0,0,01/31/2017 10 | 2016122800065001,A,2017000009755,1,MTGE,12/17/2016,187000,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 11 | 2017013000950001,A,2017000042431,1,SAT,01/24/2017,0,01/31/2017,01/31/2017,0,0,0,0,01/31/2017 12 | 2017011901360001,A,2017000031911,1,SMIS,01/18/2017,0,01/24/2017,01/24/2017,0,0,0,0,01/31/2017 13 | 2017012600063002,A,2017000039302,3,ASST,01/13/2017,0,01/27/2017,01/27/2017,0,0,0,0,01/31/2017 14 | 2017011101164001,A,2017000019549,1,DEED,01/09/2017,435000,01/13/2017,01/13/2017,0,0,0,100,01/31/2017 15 | 2017011700375003,A,2017000022156,1,PAT,01/05/2017,0,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 16 | 2017011701838001,A,2017000035734,1,MTGE,07/29/2016,50000,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 17 | 2017011600490001,A,2017000022557,1,ASST,12/30/2016,0,01/18/2017,01/18/2017,0,0,0,0,01/31/2017 18 | 2017012800076001,A,2017000040146,1,DEED,12/08/2016,0,01/30/2017,01/30/2017,0,0,0,100,01/31/2017 19 | 2017012600176001,A,2017000039516,1,LOCC,01/24/2017,0,01/30/2017,01/30/2017,0,0,0,0,01/31/2017 20 | 2017012000420002,A,2017000033413,1,MTGE,01/12/2017,1280000,01/25/2017,01/25/2017,0,0,0,0,01/31/2017 21 | 2017011100717002,A,2017000021269,1,AL&R,01/09/2017,76623310,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 22 | 2016070800639001,A,2016000237750,1,DEED,06/27/2016,0,07/13/2016,01/26/2017,0,0,0,100,01/31/2017 23 | 2017011300617002,A,2017000020473,1,PAT,12/15/2016,0,01/13/2017,01/13/2017,0,0,0,0,01/31/2017 24 | 2017011001007004,A,2017000013437,1,PAT,09/11/2016,0,01/10/2017,01/10/2017,0,0,0,0,01/31/2017 25 | 2016112800692001,A,2017000032887,1,SAT,01/13/2017,0,01/25/2017,01/25/2017,0,0,0,0,01/31/2017 26 | 2017010901502005,A,2017000021613,1,AGMT,12/23/2016,300000,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 27 | 2017011901641001,A,2017000036148,4,SAT,01/19/2017,0,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 28 | 2017012500224003,A,2017000042643,1,AL&R,12/09/2016,700000,01/31/2017,01/31/2017,0,0,0,0,01/31/2017 29 | 2017011800190002,A,2017000024554,1,ASST,12/20/2016,0,01/18/2017,01/18/2017,0,0,0,0,01/31/2017 30 | 2016111700875004,A,2017000023703,2,TOLCC,11/15/2016,0,01/18/2017,01/18/2017,0,0,0,0,01/31/2017 31 | 2017011801451001,A,2017000027018,1,CERT,12/01/2016,0,01/20/2017,01/20/2017,0,0,0,0,01/31/2017 32 | 2017010301430002,A,2017000002525,1,MTGE,12/16/2016,11679.59,01/04/2017,01/04/2017,0,0,0,0,01/31/2017 33 | 2017012100135001,A,2017000029745,1,DEED,11/16/2016,400000,01/23/2017,01/23/2017,0,0,0,100,01/31/2017 34 | 2017012001221001,A,2017000029312,1,ASST,01/11/2017,0,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 35 | 2017012501483001,A,2017000039315,2,RPTT,12/29/2016,950000,01/27/2017,01/27/2017,0,0,0,100,01/31/2017 36 | 2017011600059001,A,2017000023242,1,ASST,12/29/2016,0,01/18/2017,01/18/2017,0,0,0,0,01/31/2017 37 | 2017012401183001,A,2017000036907,1,DEED,12/29/2016,975000,01/26/2017,01/26/2017,0,0,0,100,01/31/2017 38 | 2017011900559001,A,2017000039088,1,RPTT&RET,01/24/2017,475000,01/27/2017,01/27/2017,0,0,0,100,01/31/2017 39 | 2017012600282004,A,2017000038582,1,AGMT,01/24/2017,3350000,01/27/2017,01/27/2017,0,0,0,0,01/31/2017 40 | 2017011900719001,A,2017000028963,1,SAT,01/13/2017,0,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 41 | 2017010300815001,A,2017000003367,1,DEED,10/02/2016,0,01/04/2017,01/04/2017,0,0,0,100,01/31/2017 42 | 2017012500613001,A,2017000035450,1,SAT,01/17/2017,0,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 43 | 2017011600449001,A,2017000021394,1,DEED,01/13/2017,0,01/17/2017,01/17/2017,0,0,0,100,01/31/2017 44 | 2017011000624001,A,2017000013839,1,SAT,11/10/2016,0,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 45 | 2017011001213002,A,2017000014764,1,PAT,04/30/2016,0,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 46 | 2017011100256001,A,2017000015152,1,ASST,01/06/2017,0,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 47 | 2017011001733001,A,2017000015339,1,ASST,12/07/2016,0,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 48 | 2017012500832002,A,2017000040780,1,MTGE,01/13/2017,800000,01/30/2017,01/30/2017,0,0,0,0,01/31/2017 49 | 2017010500783001,A,2017000006753,1,MTGE,12/16/2016,117000,01/05/2017,01/05/2017,0,0,0,0,01/31/2017 50 | 2016123000753002,A,2017000000247,1,MTGE,12/28/2016,376475,01/03/2017,01/03/2017,0,0,0,0,01/31/2017 51 | 2017012000266001,A,2017000032023,1,AGMT,12/13/2016,0,01/24/2017,01/24/2017,0,0,0,0,01/31/2017 52 | 2017011702232002,A,2017000024802,1,MTGE,11/10/2016,320000,01/19/2017,01/19/2017,0,0,0,0,01/31/2017 53 | 2017010800067002,A,2017000014405,1,MTGE,12/27/2016,250000,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 54 | 2017010900428004,A,2017000010991,1,ASST,12/22/2016,0,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 55 | 2017011800977004,A,2017000030042,3,PAT,01/13/2017,0,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 56 | 2017012301381004,A,2017000032630,1,TL&R,01/13/2017,0,01/25/2017,01/25/2017,0,0,0,0,01/31/2017 57 | 2017010400912027,A,2017000012642,1,MTGE,12/28/2016,8836702,01/10/2017,01/10/2017,0,0,0,0,01/31/2017 58 | 2016123000158001,A,2017000017284,3,SAT,12/29/2016,0,01/12/2017,01/12/2017,0,0,0,0,01/31/2017 59 | 2017011600306001,A,2017000033889,1,MTGE,12/31/2016,325193,01/25/2017,01/25/2017,0,0,0,0,01/31/2017 60 | 2017012700692001,A,2017000040419,1,DEED,01/24/2017,0,01/30/2017,01/30/2017,0,0,0,100,01/31/2017 61 | 2017011900499001,A,2017000026971,1,DTL,12/12/2016,0,01/20/2017,01/20/2017,0,0,0,0,01/31/2017 62 | 2017011100807002,A,2017000026788,1,AL&R,12/13/2016,12750000,01/20/2017,01/20/2017,0,0,0,0,01/31/2017 63 | 2017011001576001,A,2017000013894,1,MTGE,12/13/2016,5700000,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 64 | 2017010200086002,A,2017000009066,1,PAT,12/22/2016,0,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 65 | 2017011100644003,A,2017000017830,1,ASST,12/06/2016,0,01/12/2017,01/12/2017,0,0,0,0,01/31/2017 66 | 2017010900623002,A,2017000030067,3,DEED,01/05/2017,370000,01/23/2017,01/23/2017,0,0,0,100,01/31/2017 67 | 2017010600644001,A,2017000009742,1,ZONE,12/27/2016,0,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 68 | 2016122801026003,A,2017000008981,1,MTGE,12/21/2016,145300.5,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 69 | 2017010400071001,A,2017000004139,1,ASST,12/13/2016,0,01/04/2017,01/04/2017,0,0,0,0,01/31/2017 70 | 2017011701192001,A,2017000024154,1,DEED,01/11/2017,515000,01/18/2017,01/18/2017,0,0,0,100,01/31/2017 71 | 2017010500426003,A,2017000008939,1,ASST,12/28/2016,0,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 72 | 2017010300846001,A,2017000003371,1,MTGE,12/21/2016,282500,01/04/2017,01/04/2017,0,0,0,0,01/31/2017 73 | 2017010901191021,A,2017000029587,1,ASST,12/28/2016,0,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 74 | 2017011801067001,A,2017000035279,1,SAT,01/18/2017,0,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 75 | 2016122300309001,A,2017000034178,1,MTGE,12/19/2016,1800000,01/25/2017,01/25/2017,0,0,0,0,01/31/2017 76 | 2017013000450001,A,2017000042599,1,DEED,01/18/2017,0,01/31/2017,01/31/2017,0,0,0,100,01/31/2017 77 | 2017011600318006,A,2017000029516,1,AL&R,12/28/2016,750000,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 78 | 2017010901573006,A,2017000016016,1,PAT,12/29/2016,0,01/11/2017,01/11/2017,0,0,0,0,01/31/2017 79 | 2017010900462001,A,2017000012939,1,RPTT&RET,01/03/2017,4600000,01/10/2017,01/10/2017,0,0,0,100,01/31/2017 80 | 2017011901184001,A,2017000034761,1,RPTT&RET,01/12/2017,255000,01/25/2017,01/25/2017,0,0,0,100,01/31/2017 81 | 2017010901727004,A,2017000019279,1,PREL,01/04/2017,0,01/13/2017,01/13/2017,0,0,0,0,01/31/2017 82 | 2017012300585019,A,2017000029434,1,"DEED, TS",01/12/2017,41650,01/23/2017,01/23/2017,0,0,0,100,01/31/2017 83 | 2017012400214001,A,2017000031085,1,ASST,01/04/2017,0,01/24/2017,01/24/2017,0,0,0,0,01/31/2017 84 | 2011100500932001,A,2017000029863,1,RPTT,10/05/2011,2625,01/23/2017,01/23/2017,0,0,0,100,01/31/2017 85 | 2017010200056003,A,2017000001224,1,TL&R,12/08/2016,0,01/03/2017,01/03/2017,0,0,0,0,01/31/2017 86 | 2017012600282011,A,2017000038589,1,AL&R,01/24/2017,6550000,01/27/2017,01/27/2017,0,0,0,0,01/31/2017 87 | 2017010301617003,A,2017000021425,1,ASST,11/23/2016,0,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 88 | 2017010500319001,A,2017000020271,4,SAT,01/05/2017,0,01/13/2017,01/13/2017,0,0,0,0,01/31/2017 89 | 2017012600381002,A,2017000036015,1,ASST,01/19/2017,0,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 90 | 2017011801761002,A,2017000028689,1,MTGE,01/11/2017,310000,01/23/2017,01/23/2017,0,0,0,0,01/31/2017 91 | 2017011700299001,A,2017000021858,1,ASST,11/28/2016,0,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 92 | 2017012300758002,A,2017000039506,1,DTL,12/19/2016,0,01/30/2017,01/30/2017,0,0,0,0,01/31/2017 93 | 2017010501341002,A,2017000009324,1,ASST,12/15/2016,0,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 94 | 2017011701455001,A,2017000023822,1,SAT,12/28/2016,0,01/18/2017,01/18/2017,0,0,0,0,01/31/2017 95 | 2017011200079004,A,2017000021668,1,PAT,01/04/2017,0,01/17/2017,01/17/2017,0,0,0,0,01/31/2017 96 | 2016122800579001,A,2017000010656,1,DEED,12/21/2016,11800000,01/09/2017,01/09/2017,0,0,0,100,01/31/2017 97 | 2016122901073002,A,2017000010178,1,MTGE,12/16/2016,648000,01/09/2017,01/09/2017,0,0,0,0,01/31/2017 98 | 2017010601148002,A,2017000019727,1,PAT,01/04/2017,0,01/13/2017,01/13/2017,0,0,0,0,01/31/2017 99 | 2017012401748001,A,2017000036292,1,PAT,01/18/2017,0,01/26/2017,01/26/2017,0,0,0,0,01/31/2017 100 | 2017010401576004,A,2017000006462,1,TL&R,11/22/2016,0,01/05/2017,01/05/2017,0,0,0,0,01/31/2017 101 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ACRIS Downloader 2 | ================ 3 | 4 | This Makefile downloads NYC property transfer data and optionally loads it into a database. 5 | 6 | It's designed for people who know how to use databases, but don't necessarily want to slog through downloading huge files, manually setting up a schema and importing the those files. 7 | 8 | Currently, SQLite, MySQL and PostGreSQL are supported. If you want to use other database software, you already probably know enough to customize the Makefile. It shouldn't be harder than changing a few flags. 9 | 10 | ## The data 11 | 12 | The ACRIS data set is big and complicated, see `ACRIS Datasets` below for some explanatory notes. 13 | 14 | The Department of Finance supposedly updates the online records regularly, so you might use this Makefile, along with a cron job, to regularly update a mirror of their database. 15 | 16 | ## Requirements 17 | 18 | At least 10 GB of free disk space for the data and: 19 | 20 | * MySQL, SQLite or PostgreSQL 21 | 22 | ## Installation 23 | 24 | ### Local 25 | 26 | Download (or `git clone`) this repository and open the folder in your terminal. 27 | 28 | ## Downloading the data 29 | 30 | Run the following command: 31 | ```` 32 | make download 33 | ```` 34 | 35 | The `data/` folder will slowly fill up with files. Go out for happy hour, this will take some time. If you want to work directly with CSVs, you're done. 36 | 37 | ### Docker 38 | 39 | Dockerfiles are available for both MySQL and PostgreSQL. The most convienient way to run them is probably with the included docker-compose files. 40 | These will write the table data to the `docker/` directory. 41 | 42 | ``` 43 | docker compose -f docker-compose.mysql.yml up 44 | # or 45 | docker compose -f docker-compose.psql.yml up 46 | ``` 47 | 48 | You can choose a particular dataset with the `ACRIS_DATASET` environment variable, see `docker-compose.mysql.yml` for options, e.g: 49 | ``` 50 | ACRIS_DATASET=mysql_personal docker-compose -f docker-compose.mysql.yml run --rm acris-download 51 | ``` 52 | 53 | #### Direct DB access 54 | ``` 55 | docker compose -f docker-compose.mysql.yml up 56 | docker compose exec -it db mysql -ppass 57 | ``` 58 | ``` 59 | docker compose -f docker-compose.psql.yml up 60 | docker compose exec -it db psql -U postgres 61 | ``` 62 | 63 | #### PhpMyAdmin access 64 | ``` 65 | docker-compose up adminer 66 | ``` 67 | 68 | In a browser, go to http://localhost:8080. 69 | 70 | When finished with either access method, shut down: 71 | 72 | ``` 73 | docker-compose down 74 | ``` 75 | 76 | To reset the database, delete ./data/mysql/ 77 | To reset the downloads, delete ./data/downloads/ 78 | 79 | ## MySQL 80 | 81 | Check that you have mysql up and running on your machine, and a user capable of creating databases. Don't use root! You can use these [environment variables](https://dev.mysql.com/doc/refman/8.0/en/environment-variables.html) for setting mysql connection parameters: 82 | - `MYSQL_HOST` 83 | - `MYSQL_DATABASE` - defaults to `acris` 84 | - `MYSQLFLAGS` - add flags to the `mysql` command 85 | - `MYSQL_PWD` (use a [config file](https://dev.mysql.com/doc/refman/8.0/en/option-files.html) instead of this, if possible) 86 | 87 | To specify a local user, the config file mentioned above works best. If that's not available, set the `MYSQLFLAGS` environment variable to the user flag, e.g.: 88 | ``` 89 | export MYSQLFLAGS=-uroot 90 | ``` 91 | 92 | ### Commands 93 | 94 | ```` 95 | make mysql 96 | ```` 97 | This will run the following tasks: 98 | * download the ACRIS real property datasets in CSV format (it will be slow) 99 | * dedupe the CSVs and reformat them slightly 100 | * generate schemas for the new MySQL tables 101 | * Create a new MySQL database (`acris`) and import the data into several tables 102 | * Add indices to sensible fields in each table. You may find it profitable to add more indices yourself. 103 | 104 | If the downloads are interrupted, just run the command again. That's the power of make! 105 | 106 | By default, only the real property datasets will be downloaded. To download and create tables for the personal property datasets: 107 | ``` 108 | make mysql_personal 109 | ``` 110 | 111 | The ACRIS dataset also includes voluminous cross-reference and remarks files that aren't downloaded by default. To download them and load into MySQL: 112 | ```` 113 | make mysql_real_complete 114 | make mysql_personal_complete 115 | ```` 116 | 117 | ## SQLite 118 | This command will create `acris.db`, a database containing the real property datasets. 119 | ``` 120 | make sqlite 121 | ``` 122 | 123 | Download and load even more data into `acris.db`: 124 | ```` 125 | make sqlite_real_complete 126 | make sqlite_personal_complete 127 | ```` 128 | 129 | ## PostgreSQL 130 | 131 | Use the standard Postgres environment variables to specify the connection. 132 | 133 | ``` 134 | make psql PGHOST=my.server.com PGUSER=myuser PGDATABASE=mydb 135 | ``` 136 | 137 | By default, the data will be loaded into a schema named `acris`. You can specify another schema with the `PGSCHEMA` environment variable. 138 | 139 | Even more: 140 | ```` 141 | make psql_real_complete 142 | make psql_personal_complete 143 | ```` 144 | 145 | Add custom connection paramaters: 146 | ```` 147 | make psql_real_complete 148 | ```` 149 | 150 | ## Testing 151 | 152 | If you want to test your setup without downloading the multi-GB ACRIS datasets, truncated sample data is available in the `tests/` directory. Copy the files in `tests/data/` to `data/` to get a sense of how the process works. 153 | 154 | ## ACRIS Datasets 155 | 156 | (The following is a reformatted version of a [document published by NYC Department of Finance](https://data.cityofnewyork.us/api/assets/D7E1317A-C45E-4617-A593-668E07DA5234?download=true).) 157 | 158 | ACRIS has two types of documents: 159 | 160 | _Real Property Records_ include documents in the Deeds and Other Conveyance, Mortgages & Instruments and other documents classes in ACRIS. These documents typically impact rights to real property and as such follow the real property rather than an individual. 161 | 162 | _Personal Property Records_ include documents in the UCC and Federal Liens class in ACRIS. These documents typically impact rights to personal property associated with real property and as such follow the individual party rather than the real property. 163 | 164 | Each _Real Property Record_ or _Personal Property Record_ contains: 165 | 166 | - A master record 167 | - Zero or more lot(property) records 168 | - Zero or more party records 169 | - Zero or more cross-reference records 170 | - Zero or more remarks records 171 | 172 | The `Document ID` in the master record is used to link all other record types to a master record. To find all of the lot (property) records associated with a master record, simply retrieve all records in the 173 | property dataset with the same “Document ID” as the selected master record. The same process should be repeated for Party, Cross Reference and Remark records. 174 | 175 | ### Real property records 176 | 177 | - [Real Property Master](http://data.cityofnewyork.us/City-Government/ACRIS-Real-Property-Master/bnx9-e6tj) (document details) 178 | - [Real Property Legals](http://data.cityofnewyork.us/City-Government/ACRIS-Real-Property-Legals/8h5j-fqxa) (property details) 179 | - [Real Property Parties](http://data.cityofnewyork.us/City-Government/ACRIS-Real-Property-Parties/636b-3b5g) (party names and addresses) 180 | - [Real Property References](http://data.cityofnewyork.us/City-Government/ACRIS-Real-Property-References/pwkr-dpni) 181 | - [Real Property Remarks](http://data.cityofnewyork.us/City-Government/ACRIS-Real-Property-Remarks/9p4w-7npp) 182 | 183 | ### Personal property records 184 | 185 | - [Personal Property Master](http://data.cityofnewyork.us/City-Government/ACRIS-Personal-Property-Master/sv7x-dduq) (document details) 186 | - [Personal Property Legals](http://data.cityofnewyork.us/City-Government/ACRIS-Personal-Property-Legals/uqqa-hym2) (property details) 187 | - [Personal Property Parties](http://data.cityofnewyork.us/City-Government/ACRIS-Personal-Property-Parties/nbbg-wtuz) (party names and addresses) 188 | - [Personal Property References](http://data.cityofnewyork.us/City-Government/ACRIS-Personal-Property-References/6y3e-jcrc) 189 | - [Personal Property Remarks](http://data.cityofnewyork.us/City-Government/ACRIS-Personal-Property-Remarks/fuzi-5ks9) 190 | 191 | ### Code mappings 192 | 193 | In ACRIS, documents are stored with codes representing longer descriptions that are displayed on images generated by ACRIS and in Document Search. The translation from these codes is done via the following code look up tables: 194 | 195 | - [Document Control Codes](http://data.cityofnewyork.us/City-Government/ACRIS-Document-Control-Codes/7isb-wh4c) - codes in the real and personal property master datasets 196 | - [UCC Collateral Codes](http://data.cityofnewyork.us/City-Government/ACRIS-Country-Codes/j2iz-mwzu) - codes in the personal property master dataset 197 | - [Property Types Codes](http://data.cityofnewyork.us/City-Government/ACRIS-Property-Types-Codes/94g4-w6xz) - codes in the personal and real property legals datasets 198 | - [States Codes](http://data.cityofnewyork.us/City-Government/ACRIS-States-Codes/5c9e-33xj) - codes in the real and personal parties property datasets 199 | - [Country Codes](http://data.cityofnewyork.us/City-Government/ACRIS-UCC-Collateral-Codes/q9kp-jvxv) - codes in the real and personal parties property datasets 200 | 201 | ## Example query 202 | 203 | This example query selects all the transactions for a particular property in Brooklyn. Multiple joins are required to the `real_property_parties` table, as there are two (or more) parties per transaction. 204 | 205 | ```mysql 206 | SELECT 207 | streetnumber, 208 | streetname, 209 | documentid, 210 | c.description, 211 | m.recordtype, 212 | d.doctypedescription, 213 | docdate, 214 | docamount, 215 | d.party1type, 216 | p1.name party1name, 217 | d.party2type, 218 | p2.name party2name 219 | FROM real_property_legals a 220 | LEFT JOIN real_property_master m USING (documentid) 221 | LEFT JOIN real_property_parties p1 USING (documentid) 222 | LEFT JOIN real_property_parties p2 USING (documentid) 223 | LEFT JOIN property_type_codes c USING (propertytype) 224 | LEFT JOIN document_control_codes d USING (doctype) 225 | WHERE a.lot = 65 226 | AND a.borough = 3 227 | AND a.block = 429 228 | and p1.partytype = 1 229 | AND p2.partytype = 2; 230 | ``` 231 | 232 | ## Known issues 233 | 234 | There's a bug in how csvkit <=0.9.1 handles fields that contain only the letter 'A' - they're converted into dates. This will break the recordtype column in certain tables. 235 | 236 | ## License 237 | 238 | [General Public License version 3](https://www.gnu.org/licenses/gpl.html) 239 | -------------------------------------------------------------------------------- /tests/data/real_property_parties.csv: -------------------------------------------------------------------------------- 1 | DOCUMENT ID,RECORD TYPE,PARTY TYPE,NAME,ADDRESS 1,ADDRESS 2,COUNTRY,CITY,STATE,ZIP,GOOD THROUGH DATE 2 | 2018073000132001,P,1,"TAYLOR, EMILY","360 FURMAN STREET, UNIT 933",,US,BROOKLYN,NY,11201,08/31/2018 12:00:00 AM 3 | 2018082900859001,P,2,QUICKEN LOANS INC.,1050 WOODWARD AVE,,US,DETROIT,MI,48226,08/31/2018 12:00:00 AM 4 | 2018081600002001,P,2,"MORTGAGE ELECTRONIC REGISTRATION SYSTEMS, INC",,,,,,,08/31/2018 12:00:00 AM 5 | 2018081701275001,P,1,"KIM, NANCY","6210 WOODSIDE AVE, APT 211",,US,WOODSIDE,NY,11377,08/31/2018 12:00:00 AM 6 | 2018082701133001,P,1,LAWRENCE SKEETE,198 LEFFERTS PLACE,,US,BROOKLYN,NY,11238,08/31/2018 12:00:00 AM 7 | 2018081600597003,P,2,HABITAT QUEENS PHASE II HOUSING DEVELOPMENT CORP,111 JOHN STREET - 23RD FLOOR,,US,NEW YORK,NY,10038,08/31/2018 12:00:00 AM 8 | 2018081700353004,P,2,"JUBA, AMY LANDESS","6355 METROWEST BOULEVARD, SUITE 180",,US,ORLANDO,FL,32835,08/31/2018 12:00:00 AM 9 | 2018081100034001,P,1,"FORRESTER, JESSICA","80 WINTHROP STREET, APT L1",,US,BROOKLYN,NY,11225,08/31/2018 12:00:00 AM 10 | 2018082100327004,P,1,"MONTUORO, POONAM K",153-22 83RD STREET,UNIT # 6D-U,US,HOWARD BEACH,NY,11414,08/31/2018 12:00:00 AM 11 | 2018080901257001,P,2,MILL CITY MORTGAGE LOAN TRUST 2018-1,500 DELAWARE AVENUE,11TH FLOOR,US,WILMINGTON,DE,19801,08/31/2018 12:00:00 AM 12 | 2018080700441003,P,2,EAST WEST BANK,"9300 FLAIR DRIVE, 5TH FLOOR",,US,EL MONTE,CA,91731,08/31/2018 12:00:00 AM 13 | 2018080801372001,P,1,"DESPORT, CARLTON",,,,,,,08/31/2018 12:00:00 AM 14 | 2018080100261002,P,2,MERS,PO BOX 2026,,US,FLINT,MI,485012026,08/31/2018 12:00:00 AM 15 | 2018082001091002,P,2,"STAGIAS-COULIANIDIS, NICOLETTA",33-14 201ST STREET,,US,BAYSIDE,NY,11361,08/31/2018 12:00:00 AM 16 | 2018080801109001,P,1,"GERVASI, ZORAIDA",41 HARDEN DRIVE,,US,LAGRANGEVILLE,NY,125406323,08/31/2018 12:00:00 AM 17 | 2018082300727004,P,2,HILTON RESORTS CORPORATION,"6355 METRO WEST BLVD, SUITE 180",,US,ORLANDO,FL,32835,08/31/2018 12:00:00 AM 18 | 2018081701272001,P,1,THE BANK OF NEW YORK MELLON,101 BARCLAY STREET 7W,,US,NEW YORK,NY,10286,08/31/2018 12:00:00 AM 19 | 2018071301124001,P,1,"505 WEST 181 ASSOCIATES, LLC",4260 BROADWAY,,US,NEW YORK,NY,10033,08/31/2018 12:00:00 AM 20 | 2018080700446003,P,2,BOM OF THE 290 POWERS STREET CONDOMINIUM,290 POWERS STREET,,US,BROOKLYN,NY,11211,08/31/2018 12:00:00 AM 21 | 2018080600004001,P,1,"ASTILLERO, CHRISTOPHER",127 BARBEY STREET,,US,BROOKLYN,NY,11207,08/31/2018 12:00:00 AM 22 | 2018081401011001,P,1,"KARET, KATHERINE E",400 EAST 67TH STREET,12C,US,NEW YORK,NY,10065,08/31/2018 12:00:00 AM 23 | 2018080800729002,P,1,COLEMAN GARRETT,174-05 115TH AVENUE,,US,JAMAICA,NY,11434,08/31/2018 12:00:00 AM 24 | 2018081500743001,P,2,OT AZOI LLC,1639 EAST 13TH STREET,,US,BROOKLYN,NY,11229,08/31/2018 12:00:00 AM 25 | 2018080900930001,P,1,"CURRIE, MARCIA V",11914 231ST STREET,,US,CAMBRIA HEIGHTS,NY,11411,08/31/2018 12:00:00 AM 26 | 2018080900098001,P,1,"GIAIMO, MARIE",240-02 65TH AVENUE,,US,DOUGLASTON,NY,11362,08/31/2018 12:00:00 AM 27 | 2018082001214001,P,1,"BISSON, RADICA",104-60 LEFFERTS,,US,QUEENS,NY,11419,08/31/2018 12:00:00 AM 28 | 2018080101257001,P,1,WELLS FARGO BANK N.A.,"301 SOUTH COLLEGE STREET, 17TH FLOOR",,US,CHARLOTTE,NC,28288,08/31/2018 12:00:00 AM 29 | 2018080200238001,P,2,JPMORGAN CHASE BANK,"780 KANSAS LANE, SUITE A",,US,MONROE,LA,71203,08/31/2018 12:00:00 AM 30 | 2018080100631002,P,1,"LIU, KUO LENG",1813 77TH ST,,US,BROOKLYN,NY,112141221,08/31/2018 12:00:00 AM 31 | 2018082701182002,P,2,MERS,P.O. BOX 2026,,US,FLINT,MI,485012026,08/31/2018 12:00:00 AM 32 | 2018082700098001,P,1,"MORTGAGE ELECTRONIC REGISTRATION SYSTEMS, INC.",PO BOX 2026,,US,FLINT,MI,48501,08/31/2018 12:00:00 AM 33 | 2018080700683001,P,2,"WERTHER, ELIZABETH",617 GOOD SPRINGS ROAD,,US,BRENTWOOD,TN,37027,08/31/2018 12:00:00 AM 34 | 2018080100961001,P,1,"WAGNER, ILANA",61 SOUNDVIEW AVENUE,,US,WHITE PLAINS,NY,10606,08/31/2018 12:00:00 AM 35 | 2018081000688004,P,1,BANK OZK F/K/A BANK OF THE OZARKS,8300 DOUGLAS AVENUE,SUITE 900,US,DALLAS,TX,75225,08/31/2018 12:00:00 AM 36 | 2018081700089018,P,2,HILTON RESORTS CORPORATION,"6355 METROWEST BLVD, SUITE 180",,US,ORLANDO,FL,32835,08/31/2018 12:00:00 AM 37 | 2018080801343001,P,2,DEUTSCHE BANK NATIONAL TRUST COMPANY AS TRUSTEE,,,,,,,08/31/2018 12:00:00 AM 38 | 2018080900350001,P,2,JPMORGAN CHASE BANK NA,"780 KANSAS LANE, SUITE A",,US,MONROE,LA,71203,08/31/2018 12:00:00 AM 39 | 2018080100128003,P,1,NATIONSTAR MORTGAGE LLC DBA MR. COOPER,"4000 HORIZON WAY, SUITE 100",,US,IRVING,TX,75063,08/31/2018 12:00:00 AM 40 | 2018082000643004,P,2,POLISH & SLAVIC FEDERAL CREDIT UNION,100 MCGUINESS BOULEVARD,,US,BROOKLYN,NY,11222,08/31/2018 12:00:00 AM 41 | 2018080200121003,P,2,TD BANK NA,235 LIMESTONE RD,,US,WILMINGTON,DE,19808,08/31/2018 12:00:00 AM 42 | 2018080201065002,P,1,"CRUZ, STEPHANIE",265 LIVONIA AVENUE,APT. 5H,US,BROOKLYN,NY,11212,08/31/2018 12:00:00 AM 43 | 2018082700687001,P,1,25 CRESCENT FUNDING LLC,C/O HIRSHMARK CAPITAL LLC,"15 W 26TH STREET, STE 901",US,NEW YORK,NY,10010,08/31/2018 12:00:00 AM 44 | 2018080201167001,P,1,"NOTO, SALVATORE",8 WHITAKER PLACE,,US,STATEN ISLAND,NY,10304,08/31/2018 12:00:00 AM 45 | 2018080200912005,P,1,MA CORONA LLC,1193 ATLANTIC AVENUE,3RD FLOOR,US,BROOKLYN,NY,11216,08/31/2018 12:00:00 AM 46 | 2018080900546001,P,2,"CITIMORTGAGE, INC.","780 KANSAS LANE, SUITE A",,US,MONROE,LA,71203,08/31/2018 12:00:00 AM 47 | 2018083000299001,P,1,"YIU, WAI CHUN",6742 212TH ST,,US,OAKLAND GARDENS,NY,11364,08/31/2018 12:00:00 AM 48 | 2018080600269001,P,2,"HAUSLER, JUSTIN",,,US,,NY,,08/31/2018 12:00:00 AM 49 | 2018081600879001,P,1,108TH STREET REALTY LLC,30 STEWART ST,,US,HEWLETT,NY,11557,08/31/2018 12:00:00 AM 50 | 2006010200096001,P,2,"CITIBANK, NA",,,,,,,08/31/2018 12:00:00 AM 51 | 2018081600024001,P,2,BRIDGEVIEW BANK GROUP,"1901 E. VOORHEES STREET, SUITE C",,US,DANVILLE,IL,61834,08/31/2018 12:00:00 AM 52 | 2018081400159005,P,1,"DAVIS, JOHN ROBERT","C/O HNY CLUB SUITES, 1335 AVENUE OF THE AMERICAS",,US,NEW YORK,NY,10019,08/31/2018 12:00:00 AM 53 | 2018073000264001,P,2,"WELLS FARGO BANK, N.A.",,,,,,,08/31/2018 12:00:00 AM 54 | 2018081000091001,P,1,"RODRIGUEZ-OTERO, JANIS",3137 GRISWOLD AVENUE,,US,BRONX,NY,10465,08/31/2018 12:00:00 AM 55 | 2018082900938003,P,1,"REID LAWRENCE, KATHERINE",337 LINCOLN ROAD #2L,,US,BROOKLYN,NY,11225,08/31/2018 12:00:00 AM 56 | 2018082001127001,P,2,"RENFROE, CHRISTOPHER","99-31 66TH AVENUE, 7A",,US,REGO PARK,NY,11374,08/31/2018 12:00:00 AM 57 | 2018082300717003,P,1,"KLEIN, CHANA R",3105 AVENUE L,,US,BROOKLYN,NY,11210,08/31/2018 12:00:00 AM 58 | 2018071901024004,P,1,801 WYCKOFF LLC,1834 CONEY ISLAND AVENUE,SUITE 2,US,BROOKLYN,NY,11230,08/31/2018 12:00:00 AM 59 | 2018080901185001,P,1,"HUNT, SHANE",22411 144TH AVENUE,,US,SPRINGFIELD GARDENS,NY,11413,08/31/2018 12:00:00 AM 60 | 2018080201067001,P,2,CENDANT MORTGAGE CORPORATION,,,,,,,08/31/2018 12:00:00 AM 61 | 2018081500730002,P,1,"TURKAT, MILES I",7616 169TH ST,,US,FLUSHING,NY,11366,08/31/2018 12:00:00 AM 62 | 2018082701072004,P,1,"CATALAN, BEVERLY GRACE MARTINEZ","C/O W57 STREET VACATION SUITES, 102 WEST 57TH STRE",ET 2ND FLOOR,US,NEW YORK,NY,10019,08/31/2018 12:00:00 AM 63 | 2018081000354002,P,2,"NEW YORK CITY HISTORIC PROPERTIES FUND, INC.",1 WHITEHALL ST,21ST FLOOR,US,NEW YORK,NY,10004,08/31/2018 12:00:00 AM 64 | 2018080701225002,P,2,"JPMORGAN CHASE BANK, N.A.","14800 FRYE ROAD, 2ND FLOOR",ATTN: PORTFOLIO ADMINISTRATION,US,FORT WORTH,TX,76155,08/31/2018 12:00:00 AM 65 | 2018081401080003,P,2,"O'NEILL, NICHOLAS","311 WEST BROADWAY, UNIT 6A",,US,NEW YORK,NY,10013,08/31/2018 12:00:00 AM 66 | 2018083100201001,P,1,"LI, LAI MUN",3629 201ST ST,,US,BAYSIDE,NY,11361,08/31/2018 12:00:00 AM 67 | 2018080700185002,P,2,"WU, LILY A.","ONE WALL STREET COURT, APT. 304",,US,NEW YORK,NY,10005,08/31/2018 12:00:00 AM 68 | 2018080700082001,P,1,"SHRIBER, AMY",26 WEST ST APT 6P,,US,BROOKLYN,NY,11249,08/31/2018 12:00:00 AM 69 | 2018082101327001,P,1,2013 ELEANOR HEYMAN PROOP 1995 FAMILY TRUST,C/O: 40 NORTH,"9 WEST 57TH STREET, 30TH FLOOR",US,NEW YORK,NY,10019,08/31/2018 12:00:00 AM 70 | 2018081700819002,P,1,"RAMNARAYAN, VISHNU",112-35 207TH STREET,,US,QUEENS VILLAGE,NY,11429,08/31/2018 12:00:00 AM 71 | 2018061300211001,P,1,"BARBIS, EDWINA","11 EAST 70TH STREET, UNIT 5C",,US,NEW YORK,NY,10021,08/31/2018 12:00:00 AM 72 | 2018080100013003,P,1,"FRENKEL, SHOSHANA",3302 AVENUE N,,US,BROOKLYN,NY,11234,08/31/2018 12:00:00 AM 73 | 2018082300236001,P,1,"ECKSTEIN, MALA",36 PARKVILLE AVE 1A,,US,BROOKLYN,NY,11230,08/31/2018 12:00:00 AM 74 | 2018082100938001,P,2,"FERNANDEZ, EVER",97-10 62ND DRIVE,,US,REGO PARK,NY,11374,08/31/2018 12:00:00 AM 75 | 2018080601266001,P,2,BOARD OF MANAGERS,414 HICKS STREET,,US,BROOKLYN,NY,11201,08/31/2018 12:00:00 AM 76 | 2018080300730003,P,2,NATIONSTAR MORTGAGE LLC,8950 CYPRESS WATERS BLVD,,US,DALLAS,TX,75019,08/31/2018 12:00:00 AM 77 | 2018081601175001,P,2,VALLEY NATIONAL BANK,1720 ROUTE 23 NORTH,,US,WAYNE,NJ,07474,08/31/2018 12:00:00 AM 78 | 2018081000401002,P,1,"NATIONAL COOPERATIVE BANK, N.A., F/K/A","2011 CRYSTAL DRIVE, SUITE 800",,US,ARLINGTON,VA,22202,08/31/2018 12:00:00 AM 79 | 2018082400748001,P,2,"NGUYEN, AMANDA",455 FDR DRIVE - APT. B1001,,US,NEW YORK,NY,10002,08/31/2018 12:00:00 AM 80 | 2018082200581002,P,2,QUICKEN LOANS INC.,1050 WOODWARD AVENUE,,US,DETROIT,MI,482261906,08/31/2018 12:00:00 AM 81 | 2018071701364001,P,1,"MORGAN, NORMA",704 LEXINGTON AVENUE,,US,BROOKLYN,NY,11221,08/31/2018 12:00:00 AM 82 | 2018080700195001,P,1,"MCCAMMON, COLEEN H.S.",460 EAST 26TH STREET,,US,BROOKLYN,NY,11226,08/31/2018 12:00:00 AM 83 | 2004011600997001,P,1,"SOLOMON, CARLA M",118 EAST 65TH STREET,,US,NEW YORK,NY,10021,08/31/2018 12:00:00 AM 84 | 2018080801069001,P,1,"GADSEN-ROCKLAND UNSOLD UNITS, LLC",ATTN: MR. JEFFREY BOOKMAN,"10 CUTTER MILL ROAD, SUITE 202",US,GREAT NECK,NY,11021,08/31/2018 12:00:00 AM 85 | 2018083000792001,P,2,"BOIM, AVIGAIL",932 EAST 5TH STREET,,US,BROOKLYN,NY,11230,08/31/2018 12:00:00 AM 86 | 2018080900754001,P,1,"PHILLIPS, DAVID B",,,,,,,08/31/2018 12:00:00 AM 87 | 2018080700459002,P,1,SKC AUBURNDALE PROPERTY LLC,188-16 NORTHERN BOULEVARD,,US,FLUSHING,NY,11358,08/31/2018 12:00:00 AM 88 | 2018061700020001,P,2,"STAMLER, MICHELINE","241 EAST 76TH STREET, APT. 8E/8F",,US,NEW YORK,NY,10021,08/31/2018 12:00:00 AM 89 | 2018082000489001,P,1,"YUN, YEON",148-39 KALMIA AVE,,US,FLUSHING,NY,11355,08/31/2018 12:00:00 AM 90 | 2018081600925001,P,1,"BIERER, ARTHUR LEONARD",201 EAST 28TH STREET,,US,NEW YORK,NY,10016,08/31/2018 12:00:00 AM 91 | 2018082800513002,P,1,"ATHWAL, CHARAN KAMAL",1411 5TH AVENUE,,US,NEW HYDE PARK,NY,11040,08/31/2018 12:00:00 AM 92 | 2018080100612001,P,1,"CARA, LINDSEY",50 RIVERSIDE DRIVE UNIT 5D,,US,NEW YORK,NY,10024,08/31/2018 12:00:00 AM 93 | 2018081400241001,P,1,"PARKER, SEAN",106 DUANE STREET,#5,US,NEW YORK,NY,10007,08/31/2018 12:00:00 AM 94 | 2018081601176001,P,2,AJAX MORTGAGE LOAN TRUST 2018-A,"9400 SW BEAVERTON-HILLSDALE HWY, STE 131 A",,US,BEAVERTON,OR,97005,08/31/2018 12:00:00 AM 95 | 2018073000101001,P,2,"DAI, XIUMEI",158-15 UNION TURNPIKE,UNIT 301N,US,FRESH MEADOWS,NY,11366,08/31/2018 12:00:00 AM 96 | 2018080300179003,P,1,CLEAR LANDING PROPERTIES LLC,1212 FIFTH AVENUE,UNIT 6B/6C,US,NEW YORK,NY,10292,08/31/2018 12:00:00 AM 97 | 2018080901212001,P,1,CHICAGO TITLE INSURANCE COMPANY,"711 THIRD AVENUE, 5TH FLOOR",,US,NEW YORK,NY,10017,08/31/2018 12:00:00 AM 98 | 2018081700020001,P,1,"DANIEL, LINDA F",,,,,,,08/31/2018 12:00:00 AM 99 | 2018080900932002,P,1,"HUSTON, ELIZABETH A",95 LEXINGTON AVE,5D,US,BROOKLYN,NY,11238,08/31/2018 12:00:00 AM 100 | 2018081000384006,P,2,VALLEY NATIONAL BANK,"2 JERICHO PLAZA, WING C",,US,JERICHO,NY,11753,08/31/2018 12:00:00 AM 101 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | --------------------------------------------------------------------------------