Hybrid Cloud Oracle DBaaS Italian Workers Compensation Graph
Transcription
Hybrid Cloud Oracle DBaaS Italian Workers Compensation Graph
Oracle Spatial Summit 2015 Hybrid Cloud Using Oracle DBaaS: How the Italian Workers Comp Authority Uses Graph Technology Patrizio Galasso, Information Governance Manager, Inail Giovanni Corcione, Master Principal Sales Consultant, Oracle Italia INAIL “Workplace Accidents” linked data system OVERVIEW • Inail, the Italian Government Workers Compensation Authority, a public non-profit entity safeguarding workers against physical injuries and professional diseases. • +10K employees - management of about 600K incidents and 60K professional diseases per year – Services for +3 million Italian companies - 1800 virtual servers, 520 phisical servers • ULA: Oracle DBMS EE+Options - SOA,BPM,WEBCENTER, WLS – OBI EE. CHALLENGES / OPPORTUNITIES • 5 stars W3C OpenData model Endpoint service. • Inail scalable RDF-Graph triplestore . • Zero impact on Inail IT infrastructure SOLUTIONS • Oracle Cloud DBaaS, DBMS 12.1 EE High Performance • Spatial and Graph - RDF-Graph • Partitioning - Multitenant • Oracle Fusion Middleware 11.1.1.7 RESULTS • Linked Open Data system UE/Italian Gov Agency compliance • 10 Italian Regions: about 90M RDF triples • Security: infrastructure separation provided by PaaS Cloud services. • Semantic interoperability with Italian federated Linked Open Data • Rapid implementation, -3 days, with significant operational cost reduction. • Query simplification for complex analysis • Inail now better understands activities to deploy additional linked data for both internal and public services Objectives • • • • • • “Workplace Accidents” Linked OpenData Endpoint Service Scalabale Triplestore Zero impact on Inail IT infrustructure Reduce operational costs without compromising data security A minimal ontology to represent basic concept about Accidents at Work A specialised ontology to infer restricted fare insurance on accidents and injuries 3 Agenda • • • • • • Objectives Architecture Process Implementation “Workplace Accidents” Ontology design Demo queries Lesson Learned 4 Workplace Accidents Open Data W3C OpenData model From 3 stars to 5 stars 5 Database Cloud Service – Full Instance Editions Enterprise Edition (EE) adds… High Performance Extreme Performance adds… adds… • Transparent Data Encryption (TDE) Multitenant • Data Guard Partitioning • All standard EE features Advanced Compression In Memory Advanced Security, Label Security, Database Vault Active Data Guard Standard Edition • Full database instance • Up to 16 OCPUs Real Application Clusters (RAC) Real Application Testing OLAP, Analytics, Spatial and Graph Management Packs Reference: http://www.oracle.com/us/products/database/enterprise-edition/comparisons/index.html Greater Capabilities Cloud instantiation 8 ETL: Inail Triplestore .csv RDF Graph dati.inail.it/opendata Region.csv into Staging Table sqlldr R2RML Triples Genration Triples Materialization sem_apis.export_rdfview_model sem_apis.create_rdfview_model Populate INAIL TripleStore Add region named graph sem_apis.bulk_load_from_ staging_table Add to Staging table <http://dati.inail.it/infortuni/Lazio> Per each region 9 Inail Triplestore: Global, Local, Asserted and Inferred • 10 Italian regions • Named Graph per each region • 10 Local Model (Triple Store) • 1 Tbox containing the Inail Ontology • A global Virtual Model, Accidents_Vm: asserted and inferred 10 Using NGGI and NGLI Together INAIL_TBOX OWL2RL LAZIO Named Graph Global Inference: all over Italy Named Graph Local Inference: per each Regional Model LOMBARDIA INFERENCE ..... VENETO 1. exec sem_apis.create_entailment('infortuni_ent', sem_models('TBOX', 'LAZIO','LOMBARDIA‘,……), sem_rulebases('OWL2RL'),include_default_g=>sem_models('TBOX'), options=>' entail_anyway=t,DOP=4 '); 2. exec sem_apis.create_entailment('infortuni_ent', sem_models('TBOX', 'LAZIO','LOMBARDIA‘,……), sem_rulebases('OWL2RL'),options=>' local_ng_inf=t,entail_anyway=t,DOP=4 '); 3. exec sem_apis.create_virtual_model('infortuni_vm',sem_models ('TBOX', 'ABRUZZO','LAZIO','LOMBARDIA','PIEMONTE','CAMPANIA….), sem_rulebases('OWL2RL')); 11 “Workplace Incidents” Ontology Medium Disablement Injured Workers Companies Permanent Accidents objectProperties subClass FARES Others Farming Industry & Serives 12 Workplace Accidents Fares Inferencing asserted triples Manufacturin g Accidents Fare Manufa cturing Textile Chemical Tertiary Handicraft Textile Agricolture Chemical Chemical Handicraft Textile Industry Fare SuperClass Agricolture Tertiary Sector Agriculture OWL2 Inail:Industry-Chemical owl:equivalentClass [ rdf:type owl:Class ; Chemical Manufacturing Chemical RL profile owl:intersectionOf ( Inail:IndustryFare Inail:Chemical ) ] . 13 Global Accidents from Inail Triplestore ACCIDENTS_VM: Inferred: 86,320,601 asserted: 57,671,441 Ontology: 625 axioms/triples Abruzzo Lazio Lombardia inferred: 3,508,302 inferred: 10,066,777 inferred: 25,109,454 asserted: 2,338,933 asserted: 6,716,297 asserted: 16,739,993 Campania Liguria Veneto inferred: 4,664,035 inferred: 4,916,277 inferred: 15,626,558 asserted: 3,118,958 asserted: 3,283,652 asserted: 10,459,590 14 Ask Fare to get Age Age of injured artisans in construction industry PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#timeout=100,qid=123> PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#STRICT_DEFAULT=F,ALLOW_DUP=T> PREFIX dati:<http://dati.inail.it/opendata/infortuni/ns/> SELECT distinct ?age from dati:Piemonte ... Piemonte Named triples WHERE { ?s rdf:type dati:TariffeArtigianato-CostruzioniImpianti . ... Building-Artisan Class ?s dati:haInfortunato ?injured . ?injured dati:eta ?age } order by desc (?age) 15 Age of injured artisans in Construction Industry age "81" ^^<http://www.w3.org/2001/XMLSchema#decimal> "80" ^^<http://www.w3.org/2001/XMLSchema#decimal> "79" ^^<http://www.w3.org/2001/XMLSchema#decimal> "78" ^^<http://www.w3.org/2001/XMLSchema#decimal> "77" ^^<http://www.w3.org/2001/XMLSchema#decimal> "76" ^^<http://www.w3.org/2001/XMLSchema#decimal> "70" ^^<http://www.w3.org/2001/XMLSchema#decimal> .... .... "40" ^^<http://www.w3.org/2001/XMLSchema#decimal> "33" ^^<http://www.w3.org/2001/XMLSchema#decimal> "29" ^^<http://www.w3.org/2001/XMLSchema#decimal> "28" ^^<http://www.w3.org/2001/XMLSchema#decimal> "20" ^^<http://www.w3.org/2001/XMLSchema#decimal> "19" ^^<http://www.w3.org/2001/XMLSchema#decimal> "18" ^^<http://www.w3.org/2001/XMLSchema#decimal> "17" ^^<http://www.w3.org/2001/XMLSchema#decimal> "16" ^^<http://www.w3.org/2001/XMLSchema#decimal> "15" ^^<http://www.w3.org/2001/XMLSchema#decimal> 16 Textile workers going at work by car Accidents occurred from home to workplace PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#timeout=100,qid=123> PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#STRICT_DEFAULT=F,ALLOW_DUP=T> PREFIX dati:<http://dati.inail.it/opendata/infortuni/ns/> SELECT ?injured ?goingAtWork ?age from dati:Lazio WHERE { ?s rdf:type dati:TariffeIndustria-TessileConfezioni . ?s dati:conSenzaMezzoTrasporto dati:S; dati:modalitaAccadimento ?goingAtWork; dati:haInfortunato ?injured. ?injured dati:eta ?age. } order by desc(?goingAtWork) desc(?age) 17 Textile workers going at work by car 18 Next: Public Sector Federation LOD interoperability to enhance Private sector services Executive Order 13642 of May 9, 2013 Making Open and Machine Readable the New Default for Government Information INPS (Pension) ISTAT Section 1. General Principles. INAIL Openness in government strengthens our democracy, promotes the delivery of efficient and effective services to the public, and contributes to economic growth. As one vital benefit of open government, making information resources easy to find, usable can fuel accessible, and entrepreneurship, innovation, and scientific discovery that improves Americans' lives and contributes significantly to job creation. LABOR https://en.wikisource.org/wiki/Executive_Order_13642 19 The Shark Fin Of Digital Transformation Traditional Business Cycle Plan, Provision, Engineer Business Case to Ask for Big Investment Avoid Any Possible Risk Innovative Business Cycle Try, Innovate, React From Beta to Enterprise in a “Big Bang” Test, fail and restart 20