diff --git a/iswc/iswc-dump.rdf b/iswc/iswc-dump.rdf new file mode 100644 index 0000000..21973ba --- /dev/null +++ b/iswc/iswc-dump.rdf @@ -0,0 +1,222 @@ +@prefix rr: . +@prefix owl: . +@prefix dcam: . +@prefix xsd: . +@prefix skos: . +@prefix rdfs: . +@prefix conf: . +@prefix vcard: . +@prefix rdf: . +@prefix dcterms: . +@prefix map: . +@prefix foaf: . +@prefix dc: . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Semantic Annotation" . + + + a conf:Organization ; + rdfs:label "International University in Germany" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , , ; + foaf:name "Sonia Bergamaschi" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , , ; + foaf:name "Andy Seaborne" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Text Mining" . + + + a conf:Organization ; + rdfs:label "Institute for the Protection and Security of the Citizen" . + + + a skos:Concept ; + skos:prefLabel "Artificial Intelligence" . + + + a foaf:Document ; + dc:creator ; + dc:date 2006 ; + dc:title "D2R Server - Publishing Relational Databases on the Web as SPARQL Endpoints" ; + conf:conference "15th International World Wide Web Conference, Edinburgh" . + + + a conf:Organization ; + rdfs:label "University of Karlsruhe" . + + + a conf:PostalAddress ; + vcard:country "The Netherlands" ; + vcard:pcode "1081 HV" ; + vcard:street "De Boelelaan 1081a" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Semantic Web Infrastructure" . + + + a foaf:Person ; + conf:has_affiliation , ; + conf:research_interests , , ; + foaf:name "Borys Omelayenko" . + + + a skos:Concept ; + skos:prefLabel "World Wide Web" . + + + a conf:Organization ; + rdfs:label "Hewlett-Packard Laboratories, Bristol" . + + + a conf:PostalAddress ; + vcard:country "The Netherlands" ; + vcard:pcode "1081 HV" ; + vcard:street "De Boelelaan 1105" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Knowledge Systems" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Knowledge Discovery" . + + + a foaf:Document ; + dc:date 2006 ; + dc:title "The Semantic Web Revisited" . + + + a conf:Organization ; + rdfs:label "USC Information Sciences Institute" . + + + a conf:PostalAddress ; + vcard:country "UK" ; + vcard:pcode "BS34 8QZ" ; + vcard:street "Filton Road" . + + + a skos:Concept ; + skos:prefLabel "Databases" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , ; + foaf:name "Andreas Eberhart" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Web Services" . + + + a conf:Organization ; + rdfs:label "Vrije Universiteit Amsterdam" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Knowledge Representation Languages" . + + + a skos:Concept ; + skos:prefLabel "Knowledge Management" . + + + a foaf:Document ; + dc:creator ; + dc:date 2003 ; + dc:title "Integrating Vocabularies: Discovering and Representing Vocabulary Maps" ; + conf:conference "International Semantic Web Conference 2002, Sardinia" ; + skos:subject , , . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , , ; + foaf:name "Alberto Reggiori" . + + + a foaf:Person ; + conf:has_affiliation ; + foaf:name "Jim Blythe" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Semantic Web Languages" . + + + a conf:Organization ; + rdfs:label "Department of Computer Science" . + + + a foaf:Person ; + foaf:name "Christian Bizer" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Query Languages" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , ; + foaf:name "Varun Ratnakar" . + + + a skos:Concept ; + skos:broader ; + skos:prefLabel "Semantic Web" . + + + a conf:Organization ; + rdfs:label "AIFB" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , , ; + foaf:name "Francesco Guerra" . + + + a skos:Concept ; + skos:prefLabel "E-Business" . + + + a foaf:Document ; + dc:creator , ; + dc:date 2003 ; + dc:title "Three Implementations of SquishQL, a Simple RDF Query Language" ; + conf:conference "International Semantic Web Conference 2002, Sardinia" ; + skos:subject , , . + + + a conf:Organization ; + rdfs:label "Dipartimento di Ingegneria dell'Informazione" . + + + a foaf:Person ; + conf:has_affiliation ; + conf:research_interests , ; + foaf:name "Yolanda Gil" . diff --git a/iswc/iswc-mapping_test.rdf b/iswc/iswc-mapping_test.rdf new file mode 100644 index 0000000..ecca01e --- /dev/null +++ b/iswc/iswc-mapping_test.rdf @@ -0,0 +1,222 @@ +@prefix map: <#>. +@prefix rr: . +@prefix vcard: . +@prefix rdfs: . +@prefix skos: . +@prefix dcterms: . +@prefix dc: . +@prefix conf: . +@prefix foaf: . +@prefix rdf: . +@prefix xsd: . + +map:Person + rr:logicalTable [ rr:sqlQuery """ + SELECT PerID AS ID, Email AS foaf_mbox, FirstName AS foaf_name, LastName AS foaf_name2 + FROM persons + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/person/{"ID"}'; + rr:class foaf:Person; + ]; + rr:predicateObjectMap [ + rr:predicate foaf:name; + rr:objectMap [ + rr:template '{"foaf_name"} {"foaf_name2"}'; + rr:termType rr:Literal; + ] + ]. + + + +map:Concept + rr:logicalTable [ rr:sqlQuery """ + SELECT TopicID AS ID, TopicName AS skos_prefLabel, ParentID AS skos_broader + FROM topics + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/concept/{"ID"}'; + rr:class skos:Concept; + ]; + rr:predicateObjectMap [ + rr:predicate skos:prefLabel; + rr:objectMap [ rr:column 'skos_prefLabel' ; ] + ]; + rr:predicateObjectMap [ + rr:predicate skos:broader; + rr:objectMap [ + rr:parentTriplesMap map:Concept; + rr:joinCondition [ + rr:child 'skos_broader'; + rr:parent 'TopicID'; + ] + ] + ]. + + +map:Person_research_interests + rr:logicalTable [ rr:sqlQuery """ + SELECT persons.PerID AS ID_foaf_Person, rel_paper_topic.TopicID AS conf_research_interests + FROM persons, rel_person_paper, papers, rel_paper_topic, topics + WHERE persons.PerID = rel_person_paper.PersonID + AND rel_person_paper.PaperID = papers.PaperID + AND papers.PaperID = rel_paper_topic.PaperID + AND rel_paper_topic.TopicID = topics.TopicID + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/person/{"ID_foaf_Person"}'; + rr:class foaf:Person; + ]; + rr:predicateObjectMap [ + rr:predicate conf:research_interests; + rr:objectMap [ + rr:parentTriplesMap map:Concept; + rr:joinCondition [ + rr:child 'conf_research_interests'; + rr:parent 'TopicID'; + ] + ] + ]. + + +map:PostalAddress + rr:logicalTable [ rr:sqlQuery """ + SELECT Address || ' ' || Postcode || ' ' || Country AS ID,Country AS vcard_country, Address AS vcard_street, Location AS vcard_locality, Postcode AS vcard_pcode + FROM organizations + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/postalAddress/{"ID"}'; + rr:class conf:PostalAddress; + ]; + rr:predicateObjectMap [ + rr:predicate vcard:country; + rr:objectMap [ rr:column 'vcard_country' ; ] + ]; + rr:predicateObjectMap [ + rr:predicate vcard:pcode; + rr:objectMap [ rr:column 'vcard_pcode' ;] + ]; + + rr:predicateObjectMap [ + rr:predicate vcard:street; + rr:objectMap [ rr:column 'vcard_street' ;] + ]. + +map:Organization + rr:logicalTable [ rr:sqlQuery """ + SELECT OrgID AS ID, Homepage AS foaf_homepage, Name AS rdfs_label, Address AS vcard_ADR, Location AS vcard_ADR2, Postcode AS vcard_ADR3, Country AS vcard_ADR4 + FROM organizations + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/organization/{"ID"}'; + rr:class conf:Organization; + ]; + rr:predicateObjectMap [ + rr:predicate rdfs:label; + rr:objectMap [ rr:column 'rdfs_label'; ] + ]. + + +map:Document + rr:logicalTable [ rr:sqlQuery """ + SELECT PaperID AS ID, Title AS dc_title, Year AS dc_date, + (SELECT Name || ', ' || location from conferences where conferences.ConfID=papers.conference) AS conf_conference + FROM papers + WHERE papers.Year > 2002 + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/document/{"ID"}'; + rr:class foaf:Document; + ]; + rr:predicateObjectMap [ + rr:predicate conf:conference; + rr:objectMap [ rr:column 'conf_conference' ; ] + ]; + rr:predicateObjectMap [ + rr:predicate dc:date; + rr:objectMap [ rr:column 'dc_date' ; ] + ]; + rr:predicateObjectMap [ + rr:predicate dc:title; + rr:objectMap [ rr:column 'dc_title' ;] + ]. + +map:Document_Creator + rr:logicalTable [ rr:sqlQuery """ + SELECT papers.PaperID AS ID_foaf_Document, rel_person_paper.PersonID AS dc_creator + FROM papers, rel_person_paper, persons + WHERE papers.PaperID = rel_person_paper.PaperID + AND rel_person_paper.PersonID = persons.PerID + AND papers.Year > 2002 + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/document/{"ID_foaf_Document"}'; + rr:class foaf:Document; + ]; + rr:predicateObjectMap [ + rr:predicate dc:creator; + rr:objectMap [ + rr:parentTriplesMap map:Person; + rr:joinCondition [ + rr:child 'dc_creator'; + rr:parent 'PerID'; + ] + ] + ]. + +map:Document_subject + rr:logicalTable [ rr:sqlQuery """ + SELECT papers.PaperID AS ID_foaf_Document, rel_paper_topic.TopicID AS skos_subject + FROM papers, rel_paper_topic, topics + WHERE papers.PaperID = rel_paper_topic.PaperID + AND rel_paper_topic.TopicID = topics.TopicID + AND papers.Year > 2002 + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/document/{"ID_foaf_Document"}'; + rr:class foaf:Document; + ]; + rr:predicateObjectMap [ + rr:predicate skos:subject; + rr:objectMap [ + rr:parentTriplesMap map:Concept; + rr:joinCondition [ + rr:child 'skos_subject'; + rr:parent 'TopicID'; + ] + ] + ]. + +map:Person_has_affiliation + rr:logicalTable [ rr:sqlQuery """ + SELECT persons.PerID AS ID_foaf_Person, rel_person_organization.OrganizationID AS conf_has_affiliation + FROM persons, rel_person_organization, organizations + WHERE persons.PerID = rel_person_organization.PersonID + AND rel_person_organization.OrganizationID = organizations.OrgID + """ ]; + + rr:subjectMap [ + rr:template 'http://data.example.com/person/{"ID_foaf_Person"}'; + rr:class foaf:Person; + ]; + rr:predicateObjectMap [ + rr:predicate conf:has_affiliation; + rr:objectMap [ + rr:parentTriplesMap map:Organization; + rr:joinCondition [ + rr:child 'conf_has_affiliation'; + rr:parent 'OrgID'; + ] + ] + ]. + + + diff --git a/iswc/iswc-postgres_dump.sql b/iswc/iswc-postgres_dump.sql new file mode 100644 index 0000000..2744f18 --- /dev/null +++ b/iswc/iswc-postgres_dump.sql @@ -0,0 +1,347 @@ +-- +-- Database: iswc +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table conferences +-- + +CREATE TABLE conferences ( + ConfID integer NOT NULL default 0, + Name varchar(100) default NULL, + URI varchar(200) default NULL, + Date varchar(50) default NULL, + Location varchar(50) default NULL, + Datum timestamp default NULL, + PRIMARY KEY (ConfID) +) ; + +-- +-- Dumping data for table conferences +-- + +INSERT INTO conferences (ConfID, Name, URI, Date, Location, Datum) VALUES +(23541, 'International Semantic Web Conference 2002', 'http://annotation.semanticweb.org/iswc/iswc.daml#ISWC_2002', 'June 9-12, 2002', 'Sardinia', '2002-10-09 00:00:00'), +(23542, '15th International World Wide Web Conference', NULL, 'May 23-26, 2006', 'Edinburgh', '2006-05-23 00:00:00'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table organizations +-- + +CREATE TABLE organizations ( + OrgID integer NOT NULL default 0, + Type varchar(50) default NULL, + Name varchar(200) default NULL, + Address text, + Location varchar(50) default NULL, + Postcode varchar(10) default NULL, + Country varchar(50) default NULL, + URI varchar(100) default NULL, + Belongsto integer default NULL, + Homepage varchar(200) default NULL, + PRIMARY KEY (OrgID) +); + +CREATE INDEX idx_organizations_Belongsto ON organizations(Belongsto); + + +-- +-- Dumping data for table organizations +-- + +INSERT INTO organizations (OrgID, Type, Name, Address, Location, Postcode, Country, URI, Belongsto, Homepage) VALUES +(1, NULL, 'USC Information Sciences Institute', '4676 Admirality Way', 'Marina Del Rey', NULL, 'United States', 'http://trellis.semanticweb.org/expect/web/semanticweb/iswc02_trellis.pdf#ISI', NULL, NULL), +(2, 'U', 'University of Karlsruhe', NULL, NULL, NULL, NULL, 'http://annotation.semanticweb.org/iswc/iswc.daml#University_of_Karlsruhe', NULL, NULL), +(3, 'U', 'International University in Germany', NULL, NULL, NULL, NULL, 'http://www.i-u.de/schools/eberhart/iswc2002/#International University in Germany', NULL, NULL), +(4, 'I', 'AIFB', NULL, 'Karlsruhe', NULL, 'Germany', 'http://annotation.semanticweb.org/iswc/iswc.daml#AIFB', NULL, 'http://www.aifb.uni-karlsruhe.de/'), +(5, 'D', 'Department of Computer Science', 'De Boelelaan 1081a', 'Amsterdam', '1081 HV', 'The Netherlands', 'http://www.cs.vu.nl/~borys/papers/abstracts/ISWC2002.html#CSVUNL', 6, NULL), +(6, 'U', 'Vrije Universiteit Amsterdam', 'De Boelelaan 1105', 'Amsterdam', '1081 HV', 'The Netherlands', 'http://www.cs.vu.nl/~borys/papers/abstracts/ISWC2002.html#VrijeUniversiteitAmsterdam', NULL, NULL), +(7, NULL, 'Hewlett-Packard Laboratories, Bristol', 'Filton Road', 'Bristol', 'BS34 8QZ', 'UK', 'http://www.hpl.hp.co.uk#HPL', NULL, 'http://www.hpl.hp.com/'), +(8, 'I', 'Institute for the Protection and Security of the Citizen', 'Via Enrico Fermi, 1\n21020 - Ispra (Italy)', NULL, NULL, NULL, 'http://dma.jrc.it#Institute for the Protection and Security of the Citizen', NULL, NULL), +(9, 'D', 'Dipartimento di Ingegneria dell''Informazione', 'Via Vignolese 905', 'Modena', NULL, 'Italy', 'http://www.dbgroup.unimo.it/iswc/iswc.html#DII', NULL, NULL); + +-- -------------------------------------------------------- + +-- +-- Table structure for table papers +-- + +CREATE TABLE papers ( + PaperID integer NOT NULL default 0, + Title varchar(200) default NULL, + Abstract text, + URI varchar(200) default NULL, + Year integer default NULL, + Conference integer default NULL, + Publish smallint default NULL, + PRIMARY KEY (PaperID) +); +CREATE INDEX idx_papers_Conference ON papers(Conference); +-- +-- Dumping data for table papers +-- + +INSERT INTO papers (PaperID, Title, Abstract, URI, Year, Conference, Publish) VALUES +(1, 'Trusting Information Sources One Citizen at a Time', 'This paper describes an approach to derive assessments about information \n sources based on individual feedback about the sources. We describe \n TRELLIS, a system that helps users annotate their analysis of \n alternative information sources that can be contradictory and \n incomplete. As the user makes a decision on which sources to dismiss and \n which to believe in making a final decision, TRELLIS captures the \n derivation of the decision in a semantic markup. TRELLIS then uses these \n annotations to derive an assessment of the source based on the \n annotations of many individuals. Our work builds on the Semantic Web and \n presents a tool that helps users create annotations that are in a mix of \n formal and human language, and exploits the formal representations to \n derive measures of trust in the content of Web resources and their \n original source.', 'http://trellis.semanticweb.org/expect/web/semanticweb/iswc02_trellis.pdf#Trusting Information Sources One Citizen at a Time', 2002, 23541, 1), +(2, 'Automatic Generation of Java/SQL based Inference Engines from RDF Schema and RuleML', 'This paper describes two approaches for automatically converting RDF Schema \nand RuleML sources into an inference engine and storage repository. Rather than \nusing traditional inference systems, our solution bases on mainstream \ntechnologies like Java and relational database systems. While this necessarily \nimposes some restrictions, the ease of integration into an existing IT landscape \nis a major advantage. We present the conversion tools and their limitations. \nFurthermore, an extension to RuleML is proposed, that allows Java-enabled \nreaction rules, where calls to Java libraries can be performed upon a rule \nfiring. This requires hosts to be Java-enabled when rules and code are moved \nacross the web. However, the solution allows for great engineering \nflexibility.', 'http://www.i-u.de/schools/eberhart/iswc2002/#Automatic Generation of Java/SQL based Inference Engines from RDF Schema and RuleML', 2002, 23541, 1), +(4, 'Three Implementations of SquishQL, a Simple RDF Query Language', 'RDF provides a basic way to represent data for the Semantic Web. We have \n been experimenting with the query paradigm for working with RDF data in \n semantic web applications. Query of RDF data provides a declarative \n access mechanism that is suitable for application usage and remote \n access. We describe work on a conceptual model for querying RDF data \n that refines ideas first presented in at the W3C workshop on Query \n Languages and the design of one possible syntax, derived from rdfDB, \n that is suitable for application programmers. Further, we present \n experience gained in three implementations of the query language.', 'http://www-uk.hpl.hp.com/people/afs/Abstracts/ISWC2002-SquishQL-Abstract.html#SquishQL', 2003, 23541, 1), +(5, 'A Data Integration Framework for E-commerce Product Classification', 'A marketplace is \n the place in which the demand and supply of buyers and vendors \n participating in a business process may meet. Therefore, electronic \n marketplaces are virtual communities in which buyers may meet proposals \n of several suppliers and make the best choice. In the electronic \n commerce world, the comparison between different products is blocked due \n to the lack of standards (on the contrary, the proliferation of \n standards) describing and classifying them. Therefore, the need for B2B \n and B2C marketplaces is to reclassify products and goods according to \n different standardization models. This paper aims to face this problem \n by suggesting the use of a semi-automatic methodology, supported by a \n tool (SI-Designer), to define the mapping among different e-commerce \n product classification standards. This methodology was developed for the \n MOMIS-system within the Intelligent Integration of Information research \n area. We describe our extension to the methodology that makes it \n applyable in general to product classification standard, by selecting a \n fragment of ECCMA/UNSPSC and ecl@ss standard.', 'http://www.dbgroup.unimo.it/iswc/iswc.html#A Data Integration Framework for E-commerce Product Classification', 2002, 23541, 1), +(6, 'Integrating Vocabularies: Discovering and Representing Vocabulary Maps', 'The Semantic Web would enable new ways of doing business on the
Web \n that require development of advanced business document
integration \n technologies performing intelligent document
transformation. The \n documents use different vocabularies that
consist of large \n hierarchies of terms. Accordingly, vocabulary
mapping and \n transformation becomes an important task in the whole
business \n document transformation process. It includes several
subtasks: map \n discovery, map representation, and map execution
that must be \n seamlessly integrated into the document integration
process. In this \n paper we discuss the process of discovering the
maps between two \n vocabularies assuming availability of two sets of
documents, each \n using one of the vocabularies. We take the
vocabularies of product \n classification codes as a playground and
propose a reusable map \n discovery technique based on Bayesian text
classification approach. \n We show how the discovered maps can be
integrated into the document \n transformation process.', 'http://www.cs.vu.nl/~borys/papers/abstracts/ISWC2002.html#OmelayenkoISWC2002', 2003, 23541, 0), +(7, 'The Semantic Web Revisited', 'The original Scientific American article on the Semantic Web appeared in 2001. It described the evolution of a Web that consisted largely of documents for humans to read to one that included data and information for computers to manipulate. The Semantic Web is a Web of actionable information--information derived from data through a semantic theory for interpreting the symbols.This simple idea, however, remains largely unrealized. Shopbots and auction bots abound on the Web, but these are essentially handcrafted for particular tasks; they have little ability to interact with heterogeneous data and information types. Because we haven''t yet delivered large-scale, agent-based mediation, some commentators argue that the Semantic Web has failed to deliver. We argue that agents can only flourish when standards are well established and that the Web standards for expressing shared meaning have progressed steadily over the past five years. Furthermore, we see the use of ontologies in the e-science community presaging ultimate success for the Semantic Web--just as the use of HTTP within the CERN particle physics community led to the revolutionary success of the original Web. This article is part of a special issue on the Future of AI.', 'http://eprints.ecs.soton.ac.uk/12614/01/Semantic_Web_Revisted.pdf', 2006, NULL, 1), +(8, 'D2R Server - Publishing Relational Databases on the Web as SPARQL Endpoints', 'The Resource Description Framework and the SPARQL query language provide a standardized way for exposing and linking data sources on the Web. D2R Server is a turn-key solution for making the content of existing, non-RDF databases accessible as SPARQL endpoints. The server takes SPARQL queries from the Web and rewrites them via a mapping into SQL queries against a relational database. This on-the-fly translation allows RDF applications to access the content of large databases without having to replicate them into RDF. D2R Server can be used to integrate existing databases into RDF systems, and to add SPARQL interfaces to database-backed software products. In the talk, we will give an introduction into the D2RQ mapping language, which is used to define mappings between relational and RDF schemata, and demonstrate how D2R Server can be used to extend a WordPress blog with a SPARQL interface.', 'http://www.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/resources/d2r-server-slides-www2006.pdf', 2006, 23542, 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table persons +-- + +CREATE TABLE persons ( + PerID integer NOT NULL default 0, + Type varchar(50) default NULL, + FirstName varchar(100) default NULL, + LastName varchar(100) default NULL, + Address varchar(200) default NULL, + Email varchar(100) default NULL, + Homepage varchar(50) default NULL, + Phone varchar(200) default NULL, + URI varchar(200) default NULL, + Photo varchar(200) default NULL, + PRIMARY KEY (PerID) +); + +-- +-- Dumping data for table persons +-- + +INSERT INTO persons (PerID, Type, FirstName, LastName, Address, Email, Homepage, Phone, URI, Photo) VALUES +(1, 'Full_Professor', 'Yolanda', 'Gil', NULL, 'gil@isi.edu', 'http://www.isi.edu/~gil', '310-448-8794', 'http://trellis.semanticweb.org/expect/web/semanticweb/iswc02_trellis.pdf#Yolanda Gil', 'http://www.isi.edu/~gil/y.g.v4.tiff'), +(2, NULL, 'Varun', 'Ratnakar', NULL, 'varunr@isi.edu', 'http://www.isi.edu/~varunr', NULL, 'http://trellis.semanticweb.org/expect/web/semanticweb/iswc02_trellis.pdf#Varun Ratnakar', NULL), +(3, 'Researcher', 'Jim', 'Blythe', NULL, 'blythe@isi.edu', 'http://www.isi.edu/~varunr', NULL, 'http://trellis.semanticweb.org/expect/web/semanticweb/iswc02_trellis.pdf#Jim Blythe', NULL), +(4, 'Researcher', 'Andreas', 'Eberhart', 'International University in Germany Campus 2 76646 Bruchsal Germany', 'eberhart@i-u.de', 'http://www.i-u.de/schools/eberhart/', '+49 7251 700 222', 'http://www.i-u.de/schools/eberhart/iswc2002/#Andreas Eberhart', NULL), +(5, 'Researcher', 'Borys', 'Omelayenko', 'Vrije Universiteit, Division of Mathematics and Computer Science, De Boelelaan 1081a,1081hv, Amsterdam, The Netherlands', 'borys@cs.vu.nl', 'http://www.cs.vu.nl/~borys', NULL, 'http://www.cs.vu.nl/~borys#Bomelayenko', NULL), +(6, 'Researcher', 'Andy', 'Seaborne', 'Hewlett-Packard Laboratories, Bristol, BS34 8QZ, UK', 'andy.seaborne@hpl.hp.com', 'http://www-uk.hpl.hp.com/people/afs/', NULL, 'http://www-uk.hpl.hp.com/people#andy_seaborne', 'http://semtech2011.semanticweb.com/uploads/images/bios/3205.jpg'), +(9, NULL, 'Alberto', 'Reggiori', NULL, 'areggiori@webweaving.org', 'http://reggiori.webweaving.org/', NULL, 'http://reggiori.webweaving.org#Alberto Reggiori', NULL), +(10, 'Full_Professor', 'Sonia', 'Bergamaschi', 'DII- Universita di Modena e Reggio Emilia via Vignolese 905 41100 Modena', 'bergamaschi.sonia@unimo.it', 'http://www.dbgroup.unimo.it/Bergamaschi.html', '+39 059 2056132', 'http://www.dbgroup.unimo.it/iswc/iswc.html#S. Bergamaschi', NULL), +(11, NULL, 'Francesco', 'Guerra', 'DII- Universita di Modena e Reggio Emilia via Vignolese 905 41100 Modena Italy', 'guerra.francesco@unimo.it', 'http://www.dbgroup.unimo.it/~guerra/', '+39 059 20561543', 'http://www.dbgroup.unimo.it/iswc/iswc.html#F. Guerra', NULL), +(12, 'Researcher', 'Christian', 'Bizer', 'Freie Universität Berlin', 'chris@bizer.de', 'http://www.bizer.de/', NULL, 'http://www.bizer.de/foaf.rdf#chris', 'http://www.wiwiss.fu-berlin.de/en/institute/pwo/bizer/pics/bizer_christian_200x300.png'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table rel_paper_topic +-- + +CREATE TABLE rel_paper_topic ( + PaperID integer NOT NULL default 0, + TopicID integer NOT NULL default 0, + RelationType integer default NULL, + PRIMARY KEY (PaperID,TopicID) +); + +CREATE INDEX idx_rel_paper_topic_TopicID ON rel_paper_topic(TopicID); + +-- +-- Dumping data for table rel_paper_topic +-- + +INSERT INTO rel_paper_topic (PaperID, TopicID, RelationType) VALUES +(1, 5, 1), +(1, 15, 2), +(2, 3, 3), +(2, 5, 2), +(4, 10, 2), +(4, 11, 1), +(4, 14, 2), +(5, 2, 3), +(5, 3, 1), +(5, 13, 2), +(6, 5, 2), +(6, 11, 1), +(6, 13, 3); + +-- -------------------------------------------------------- + +-- +-- Table structure for table rel_person_organization +-- + +CREATE TABLE rel_person_organization ( + PersonID integer NOT NULL default 0, + OrganizationID integer NOT NULL default 0, + PRIMARY KEY (PersonID,OrganizationID) +) ; +CREATE INDEX idx_rel_person_organization_OrganizationID ON rel_person_organization(OrganizationID); + +-- +-- Dumping data for table rel_person_organization +-- + +INSERT INTO rel_person_organization (PersonID, OrganizationID) VALUES +(1, 1), +(2, 1), +(3, 1), +(4, 3), +(5, 5), +(5, 6), +(6, 7), +(9, 8), +(10, 9), +(11, 9); + +-- -------------------------------------------------------- + +-- +-- Table structure for table rel_person_paper +-- + +CREATE TABLE rel_person_paper ( + PersonID integer NOT NULL default 0, + PaperID integer NOT NULL default 0, + PRIMARY KEY (PersonID,PaperID) +); +CREATE INDEX idx_rel_person_paper_PaperID ON rel_person_paper(PaperID); + +-- +-- Dumping data for table rel_person_paper +-- + +INSERT INTO rel_person_paper (PersonID, PaperID) VALUES +(1, 1), +(2, 1), +(4, 2), +(6, 4), +(9, 4), +(10, 5), +(11, 5), +(5, 6), +(12, 8); + +-- -------------------------------------------------------- + +-- +-- Table structure for table rel_person_topic +-- + +CREATE TABLE rel_person_topic ( + PersonID integer NOT NULL default 0, + TopicID integer NOT NULL default 0, + PRIMARY KEY (PersonID,TopicID) +); +CREATE INDEX idx_rel_person_topic_TopicID ON rel_person_topic(TopicID); +-- +-- Dumping data for table rel_person_topic +-- + +INSERT INTO rel_person_topic (PersonID, TopicID) VALUES +(1, 1), +(3, 1), +(4, 1), +(1, 2), +(3, 2), +(1, 3), +(3, 3), +(2, 5), +(5, 5), +(6, 5), +(9, 5), +(10, 5), +(11, 5), +(2, 6), +(2, 7), +(5, 7), +(2, 8), +(10, 10), +(11, 10), +(5, 13), +(10, 15); + +-- -------------------------------------------------------- + +-- +-- Table structure for table topics +-- + +CREATE TABLE topics ( + TopicID integer NOT NULL default 0, + TopicName varchar(50) default NULL, + URI varchar(200) default NULL, + ParentID integer default NULL, + PRIMARY KEY (TopicID) +) ; +CREATE INDEX idx_topics_TopicID ON topics(ParentID); + +-- +-- Dumping data for table topics +-- + +INSERT INTO topics (TopicID, TopicName, URI, ParentID) VALUES +(1, 'Knowledge Representation Languages', 'http://annotation.semanticweb.org/iswc/iswc.daml#Knowledge_Representation_Languages', 3), +(2, 'Knowledge Systems', 'http://annotation.semanticweb.org/iswc/iswc.daml#Knowledge_Systems', 15), +(3, 'Artificial Intelligence', 'http://annotation.semanticweb.org/iswc/iswc.daml#Artificial_Intelligence', NULL), +(4, 'Semantic Annotation', 'http://annotation.semanticweb.org/iswc/iswc.daml#Semantic_Annotation', 5), +(5, 'Semantic Web', 'http://annotation.semanticweb.org/iswc/iswc.daml#Semantic_Web', 8), +(6, 'Semantic Web Languages', 'http://annotation.semanticweb.org/iswc/iswc.daml#Semantic_Web_Languages', 5), +(7, 'Web Services', 'http://annotation.semanticweb.org/iswc/iswc.daml#Web_Services', 8), +(8, 'World Wide Web', 'http://annotation.semanticweb.org/iswc/iswc.daml#World_Wide_Web', NULL), +(9, 'Text Mining', 'http://annotation.semanticweb.org/iswc/iswc.daml#Text_Mining', 16), +(10, 'Databases', 'http://annotation.semanticweb.org/iswc/iswc.daml#Databases', NULL), +(11, 'Semantic Web Infrastructure', 'http://annotation.semanticweb.org/iswc/iswc.daml#Semantic_Web_Iinfrastructure', 5), +(13, 'E-Business', 'http://annotation.semanticweb.org/iswc/iswc.daml#e-Business', NULL), +(14, 'Query Languages', 'http://annotation.semanticweb.org/iswc/iswc.daml#Query_Languages', 16), +(15, 'Knowledge Management', 'http://annotation.semanticweb.org/iswc/iswc.daml#Knowledge_Management', NULL), +(16, 'Knowledge Discovery', 'http://annotation.semanticweb.org/iswc/iswc.daml#Knowledge_Discovery', 3); + +-- +-- Constraints for dumped tables +-- + +-- +-- Constraints for table organizations +-- +ALTER TABLE organizations + ADD CONSTRAINT organizations_ibfk_1 FOREIGN KEY (Belongsto) REFERENCES organizations (OrgID); + +-- +-- Constraints for table papers +-- +ALTER TABLE papers + ADD CONSTRAINT papers_ibfk_1 FOREIGN KEY (Conference) REFERENCES conferences (ConfID); + +-- +-- Constraints for table rel_paper_topic +-- +ALTER TABLE rel_paper_topic + ADD CONSTRAINT rel_paper_topic_ibfk_1 FOREIGN KEY (PaperID) REFERENCES papers (PaperID), + ADD CONSTRAINT rel_paper_topic_ibfk_2 FOREIGN KEY (TopicID) REFERENCES topics (TopicID); + +-- +-- Constraints for table rel_person_organization +-- +ALTER TABLE rel_person_organization + ADD CONSTRAINT rel_person_organization_ibfk_1 FOREIGN KEY (PersonID) REFERENCES persons (PerID), + ADD CONSTRAINT rel_person_organization_ibfk_2 FOREIGN KEY (OrganizationID) REFERENCES organizations (OrgID); + +-- +-- Constraints for table rel_person_paper +-- +ALTER TABLE rel_person_paper + ADD CONSTRAINT rel_person_paper_ibfk_1 FOREIGN KEY (PersonID) REFERENCES persons (PerID), + ADD CONSTRAINT rel_person_paper_ibfk_2 FOREIGN KEY (PaperID) REFERENCES papers (PaperID); + +-- +-- Constraints for table rel_person_topic +-- +ALTER TABLE rel_person_topic + ADD CONSTRAINT rel_person_topic_ibfk_1 FOREIGN KEY (PersonID) REFERENCES persons (PerID), + ADD CONSTRAINT rel_person_topic_ibfk_2 FOREIGN KEY (TopicID) REFERENCES topics (TopicID); + +-- +-- Constraints for table topics +-- +ALTER TABLE topics + ADD CONSTRAINT topics_ibfk_1 FOREIGN KEY (ParentID) REFERENCES topics (TopicID);