semweb 2000 - ecdl workshop on the semantic web semweb 2000 - ecdl workshop on the semantic web...

19
Copyright © 2000 SemWeb 2000 - ECDL Workshop on the Semantic Web Representing and Transforming Model-Based Information Shawn Bowers and Lois Delcambre Department of Computer Science and Engineering Oregon Graduate Institute

Upload: joella-parsons

Post on 17-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

Copyright © 2000 Copyright © 2000 SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

Representing and Transforming Model-Based Information

Representing and Transforming Model-Based Information

Shawn Bowers and Lois Delcambre

Department of Computer Science and Engineering

Oregon Graduate Institute

Page 2: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

2

Model-Based Information and ToolsModel-Based Information and Tools

XML

DB

XML Viewer

SQL

TM BrowserPaintingPainting PainterPainter

by painter

Influenced by

mentioned biographymentionedcritiqued

Page 3: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

3

Our GoalsOur Goals

• Represent information generically, for various models

• Convert information from one representation scheme to another

Page 4: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

4

Transforming InformationTransforming Information

Generic Rep. (XML model)

Generic Rep. (XML model)

convert

Generic Rep.(Topic Map model)

XML

DB

XML Viewer

SQL

TM BrowserPaintingPainting PainterPainter

by painter

Influenced by

mentioned biographymentionedcritiqued

convert

Generic Rep.(Relational model)

Page 5: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

5

Our ApproachOur Approach

• Metamodel – to represent multiple data models

• Generic Representation Scheme– to store model, schema, and instances for model-

based information

• Mapping Formalism – to transform between representation schemes

Page 6: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

6

The MetamodelThe Metamodel

• Provides a level of abstraction above models• Describes the structural features of models

Topic Map

Topic Map Defintions

Topic Map Instances

XML

DTD

XML Document

Basic Set of Abstractions

Model Constructs and Relationships

Schema-LevelData

Instance-LevelData

Metamodel

Page 7: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

7

XML Model, Schema, and InstanceXML Model, Schema, and Instance

• Elements, Element Types, Attributes, Attribute Types• Elements contain Attributes• Elements can be nested

<!ELEMENT schedule (flight*)><!ELEMENT flight (from, to, price)><!ATTLIST flight name CDATA #REQUIRED>

<schedule> <flight name=“Air Canada Flight 1575”> <from> PDX </from> <to> YVR </to> <price> $213.84 </price> </flight> ...</schedule>

XMLModel

XML DTD(Schema)

XML Document

(Instances)

Model constructs and relationships defined using the metamodel

Page 8: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

8

Topic Map ExampleTopic Map Example

PaintingPainting PainterPainterby painter

Influenced by

“Captive”“Captive” “Paul Klee”“Paul Klee”by painter influenced by

“Francisco de Goya”“Francisco de Goya”

“1914”“1914”by painter

mentioned biographymentioned

mentionedhttp://...

biography biography

http://...http://...

critiqued

critiqued

mentioned

http://...

http://...

Page 9: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

9

Topic Map Model in UMLTopic Map Model in UML

TopicType

ttypename : String

TopicRelType

relType : String

AnchorType

anchorRole : String

TopicInstance

title : StringtopicInsID : Number

TopicRelInst

AnchorInst

<<Mark>>Address

markID : String

*

*

*

**

* 1

1

1 11

1

<<conformance>>topic_instOf

<<conformance>>rel_instOf

<<conformance>>anchor_instOf

address

topicInstopicType

1 1

* *

topicType1

topicType2 1 1

* *

topicIns1

topicIns2

Page 10: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

10

Generic RepresentationGeneric Representation

• We use RDF and RDF Schema to represent model, schema, and instance uniformly

http://…/~johncreator (creator, ‘http://…/~john’, person1)

(name, ‘person1’, ‘John Smith’)

Class

Property

creator

type

Person

WebPagetype

type

domain

range

(type, ‘creator’, Property)(domain, ‘creator’, WebPage)(range, ‘creator’, Person)(type, ‘Person’, Class)(type, ‘WebPage’, Class)

person1 ‘John Smith’name

RDF TriplesRDF Graph

RDF Schema TriplesRDF Schema Graph

Page 11: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

11

Representing ModelsRepresenting Models

(instanceOf, “TopicType”, Construct)(instanceOf, “TopicInstance”, Construct)

(instanceOf, “topic_instOf”, Conformance)(domain, “topic_instOf”, TopicInstance)(range, “topic_instOf”, TopicType)(domainMult, “topic_instOf”, “*”)(rangeMult, “topic_instOf”, “1”)

(instanceOf, “ttypename”, Connector)(domain, “ttypename”, TopicType)(range, “ttypename”, String)(domainMult, “ttypename”, “*”)(rangeMult, “ttypename”, “1”)

TopicType

ttypename : String

TopicInstance

*

1

<<conformance>>

topic_instOf

Page 12: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

12

Representing SchemaRepresenting Schema

(instanceOf, “painting_tt”, TopicType)(ttypename, “painting_tt”, “painting”)(instanceOf, “painter_tt”, TopicType)(ttypename, “painter_tt”, “painter”)

(instanceOf, “byPainter_rt”, TopicRelType)(relType, “byPainter_rt”, “by painter”)(topicType1, “byPainter_rt”, painting_tt)(topicType2, “byPainter_rt”, painter_tt)

(instanceOf, “biography_at”, AnchorType)(anchorRole, “biography_at”, “biography”)(topicType, “biography_at”, painter_tt)

Topic Types (schema):painting, painter

Topic Rel Types (schema):by painter

Anchor Types (schema):biography

paintingpainting painterpainterby painter

biography

Page 13: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

13

Representing InstancesRepresenting Instances

(instanceOf, “painter1”, TopicInstance)(title, “painter1”, “Paul Klee”)(topicInsID, “painter1”, “5”)(topic_instOf, “painter1”, painter_tt)(instanceOf, “painting1”, TopicInstance)(title, “painting1”, “Captive”)(topicInsID, “painting1”, “19”)(topic_instOf, “painting1”, painting_tt)

(instanceOf, “byPainter1”, TopicRelInst)(rel_instOf, “byPainter1”, byPainter_rt)(topicIns1, “byPainter1”, painting1)(topicIns2, “byPainter1”, painter1)

(instanceOf, “biography1”, AnchorInst)(anchor_instOf, “biography1”, biography_at)(address, “biography1”, a1)

(instanceOf, “a1”, Address)(markID, “a1”, “URLMarkManager@954308545”)

Topic (instances):Paul Klee, Captive

Topic Relationship (instance):a by painter relationship

Anchor (instance):a biography anchor

Address (instance):mark to URL

Page 14: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

14

Basic Types of MappingsBasic Types of Mappings

Mapped

Converted

Converted

Converted

Converted

Converted

Inter-Model

Inter-Schema

Model-to-Schema

Model2

Schema1

Instances1

Model1

Schema1

Instances1

Model1

Schema1

Instances1

Model1

Schema1

Instances1

Model1

Schema2

Instances1

Model2

Schema2

Instances2

Mapped

Mapped

Page 15: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

15

S(‘source’, (‘instanceOf’, X, ‘TopicInstance’))S(‘target’, (‘instanceOf’, X, ‘XMLElem’))

XMLElemTopicInstanceMapped

Mapping RulesMapping Rules

• Simple production rules over triples

Page 16: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

16

Mapping Rules (cont.)Mapping Rules (cont.)

XMLElemTopicInstance

XMLElemTypeTopicType

Mapped elem_instOftopic_instOf

S(‘source’, (‘topic_instOf’, X, Y))S(‘target’, (‘instanceOf’, X, ‘XMLElem’))S(‘target’, (‘instanceOf’, Y, ‘XMLElemType’))S(‘target’, (‘elem_instOf’, X, Y))

Page 17: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

17

ConclusionConclusion

• Metamodel– to describe multiple (superimposed) data models

• A Generic Representation Scheme– to represent models, schema, and instances uniformly

– along with a visual representation

• Mapping Formalism– to convert information from one scheme to another

Page 18: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

18

Context: Superimposed Information ResearchContext: Superimposed Information Research

• NSF Digital Libraries 2 Program“Tracking Footprints through a Medical Information Space”

• NSF Digital Government Program“Harvesting Information to Sustain our Forests”

SuperimposedLayer

BaseLayer Information

Source1

markmark

Model

Schema Data

Instance Data

InformationSource1

mark

Page 19: SemWeb 2000 - ECDL Workshop on the Semantic Web SemWeb 2000 - ECDL Workshop on the Semantic Web Copyright © 2000 Representing and Transforming Model-Based

SemWeb 2000 - ECDL Workshop on the Semantic Web

SemWeb 2000 - ECDL Workshop on the Semantic Web

19

ApplicationsApplications

• SLIM Pad– Scratchpad application with Bundle-Scrap model

(uses superimposed information)

• XML Extractor– “Extracts” XML information and transforms it into a

Topic Map for searching/browsing

XML FilesGeneric Rep.(XML model)

Generic Rep.(TM model)

DBMS

Topic Map BrowserTopic Map Browser

XML Extractor

XML Extractor

out mapped storedin