Title: Semantic Web and Knowledge Management
1Semantic Web and Knowledge Management
- Ching-Long Yeh ???
- Department of Computer Science and Engineering
- Tatung University
- Taipei, Taiwan
- Email chingyeh_at_cse.ttu.edu.tw
- http//www.cse.ttu.edu.tw/chingyeh
2Content
- Web technology evolution
- Semantic Web
- Ontology and Languages
- Semantic Web Service
- Semantic Web Applications
- Summary
3Web Technology Evolution
4Web Technology
- HTML, HTTP
- XML
- Electronic Business
- Semantic Web
5WWW
Information Pool
Application
Client
Web server
URL
HTML Document
HTTP
- HTTP (Hyper Text Transport Protocol)
- HTML (Hyper Text Markup Language)
- URL (Uniform Resource Locator)
- Human-to-machine interaction
- Information explosion
6Interaction Using XML
Information Pool
Information Pool
Application
Application
SOAP server
SOAP server
XML Document
XML Document
HTTP
- XML (eXtensible Markup Language)
- SOAP (Simple Object Access Protocol)
- Machine-to-machine interaction
- Service automation
7Web Service Architecture
8Electronic Business
- Application-to-Application
- Business Process Automation
- RosettaNet
- ebXML
Company B
Company A
ERP
ERP
9Semantic Web
- The Semantic Web is a vision
the idea of having data on the web defined and
linked in a way that it can be used by machines
not just for display purposes, but for
automation, integration and reuse of data across
various applications
- See W3C Semantic Web Activity, by Marja-Riitta
Koivunen, for more descriptions.
10Semantic Web
- The Semantic Web is the new generation of the
World Wide Web, based on the semantic network
knowledge representation formalism, which enables
packaging information in the form of
object-attribute-value statements, so called
triplets. - By assuming that terms used in these statements
are based on the formally specified meaning (for
the community of interest), i.e. ontologies,
these triplets can be semantically processed by
machine agents.
From http//www2002.org/CDROM/poster/130.pdf
11The Semantic Web Layered Architecture
Trust
Sig
Proof
Tim Berners-Lee Axioms, Architecture and
Aspirations W3C all-working group plenary
Meeting 28 February 2001
Logic
Rules
Ontology
RDF Schema
(http//www.w3.org/2001/Talks/0228-tbl/slide5-0.ht
ml)
RDF MS
XML Schema
XML
Namespaces
URI
Unicode
12The Big Picture of SW
(http//semanticweb.org/about.htmlbigpicture)
13The metadata layer of the Semantic Web
14What Is in an Ontology?
- One widely cited definition of an ontology is
Grubers Gruber 1993 A specification of a
conceptualization. - An ontology is a formal explicit description of
- concepts in a domain of discourse (classes
(sometimes called concepts)), - properties of each concept describing various
features and attributes of the concept (slots
(sometimes called roles or properties)), and - restrictions on slots (facets (sometimes called
role restrictions)). - An ontology together with a set of individual
instances of classes constitutes a knowledge
base.
15Ontology Spectrum
(From http//www.ksl.stanford.edu/people/dlm/pape
rs/ontologies-come-of-age-mit-press-(with-citation
).htm)
16Semantic Web Languages
17What is XML?
- Extensible Markup Language
- A Syntax for Documents
- A Meta-Markup Language
- A Structural and Semantic Language, not a
Formatting Language - Not just for Web pages
18XML Standards
- DTD
- Namespace
- Schema
- DOM
- CSS, XSL-T, XSL-FO
- XLink
- XPointer
19XML Protocol SOAP
20RDF MS
- RDF (Resource Description Framework)
- Beyond Machine readable to Machine understandable
- RDF consists of two parts
- RDF Model (a set of triples)
- RDF Syntax (different XML serialization syntaxes)
- RDF Schema for definition of Vocabularies (simple
Ontologies) for RDF (and in RDF)
21RDF Data Model
- Resources
- A resource is a thing you talk about (can
reference) - Resources have URIs
- RDF definitions are themselves Resources
(linkage, see requirement 1) - Properties
- slots, define relationships to other resources or
atomic values - Statements
- Resource has Property with Value
- (Values can be resources or atomic XML data)
- Similar to Frame Systems
22A Simple Example
- Statement
- Ora Lassila is the creator of the resource
http//www.w3.org/Home/Lassila - Structure
- Resource (subject) http//www.w3.org/Home/Las
sila - Property (predicate) http//www.schema.org/Cre
ator - Value (object) "Ora Lassila
- Directed graph
sCreator
http//www.w3.org/Home/Lassila
23OWLW3C Web Ontology Language
- OWL provides three increasingly expressive
sublanguages OWL Lite, OWL DL, and OWL Full.
24OWLW3C Web Ontology Language
OWL Lite language constructs
RDF Schema Features Class rdfProperty
rdfssubClassOf rdfssubPropertyOf rdfsdomain
rdfsrange Individual
(In)Equality equivalentClass equivalentProperty
sameAs differentFrom allDifferent
Property Characteristics inverseOf
TransitiveProperty SymmetricProperty
FunctionalProperty InverseFunctionalProperty
Property Type Restrictions allValuesFrom
someValuesFrom
Restricted Cardinality minCardinality (only 0
or 1) maxCardinality (only 0 or 1) cardinality
(only 0 or 1)
Header Information ontology imports
25Semantic Web Services
26Some Motivating Tasks
- The kinds of task we expect OWL-S to enable
- Automatic Web service discovery
- Automatic Web service invocation
- Automatic Web service composition and
interoperation - Automatic Web service execution monitoring
27High-level View of the Service Ontology
Service
Resource
provides
presents
supports
describedBy
ServiceProfile
ServiceGrounding
What the service does
How to Access it
ServiceModel
How it works
28Top Level of the Process Ontology
Input Precondition Output effect
hasProcess hasProfile
Process
Profile
Condition
Atomic Process
has Grounding
computedInput computedOutput computedEffect comput
edPrecondition invocab
Composite Process
expand collapse
realizes realizedBy
Simple Process
compsedBy
Control Construct
Sequence
Repeat Until
29Grounding a Service to a Concrete Realization
OWL-S
DL-Based Types
Process Model
Inputs/Outputs
Atomic Process
Message
Operation
Binding to SOAP, HTTP, etc.
WSDL
30Semantic Web Services Architecture
31Introduction
- Develop architectural and protocol abstractions
forming a reference architecture to support
Semantic Web Service technologies - The support functions the architecture will cover
- Dynamic Service Discovery
- Service Process Enactment and Management
- Negotiation and Contracting
- Semantic Web Community Support Services
- Semantic Web Service Lifecycle and Resource
Management Services - Cross-cutting Issues
32Introduction
- Semantic Web Services are viewed as a way to
extend the capabilities of web services in the
direction of dynamic interoperability. - Commercial web services, in both B2B and B2C
applications - Grid computing
- Ubiquitous computing
- Information Services
33Functional Areas
34Functional Areas
35Functional Areas
36Functional Areas
37Functional Areas
38Summary
- Abstractions of services on emerging
technological architectures - The Semantic Web Service Architecture is probably
an integration of the abstractions of services
for various functional areas.
39An Architecture of Semantic Community Web Portals
(From http//www9.org/w9cdrom/134/134.html)
40Development of Web Portals
41A KM Framework over SW
(From http//www2002.org/CDROM/poster/130.pdf)
42What is Sesame ?
- Sesame is RDF Schema-based repository
- and querying facility that offers
- A persistent store of RDF data
- Export of repository contents in RDF format
- Data administration functionality
- Query engine (RQL , SeRQL)
43Sesames Architecture
44(No Transcript)
45(No Transcript)
46An Ontology-Based Portal for Digital Library
Services
47Syntax Transformation of RDF
48What is RDF
- RDF (Resource Description Framework)
- The common language used for the semantic
interoperability of the Semantic Web. - Consisting of
- a data model in directed labeled graph and
- the corresponding XML serializations
ltrdfRDFgt ltrdfDescription about"http//www.w3
.org/Home/Lassila"gt ltsCreatorgt
ltrdfDescription about"http//www.w3.org/staffId/
85740"gt ltvNamegtOra Lassilalt/vNamegt
ltvEmailgtlassila_at_w3.orglt/vEmailgt
lt/rdfDescriptiongt lt/sCreatorgt
lt/rdfDescriptiongt lt/rdfRDFgt
http//www.w3.org/Home/Lassila
Creator
ltrdfRDFgt ltrdfDescription about"http//www.w3
.org/Home/Lassila"gt ltsCreator
rdfresource"http//www.w3.org/staffId/85740"/gt
lt/rdfDescriptiongt ltrdfDescription
about"http//www.w3.org/staffId/85740"gt
ltvNamegtOra Lassilalt/vNamegt
ltvEmailgtlassila_at_w3.orglt/vEmailgt
lt/rdfDescriptiongt lt/rdfRDFgt
Name
Email
Ora Lassila
lassila_at_w3.org
49Problem
Transformation of RDF Using DOM
(RDF in XML)n
DOM Proceduren
(RDF in XML)i
DOM Procedurei
Resulti
(RDF in XML)2
DOM Procedure2
(RDF in XML)1
DOM Procedure1
Transformation results
A single RDF data model
Multiple RDF in XML
Transformation of RDF Using DOM
50Goal
Syntax-directed Transformation of RDF
(RDF in XML)n
(RDF in XML)i
Syntax-directed Transformation
Resulti
(RDF in XML)2
(RDF in XML)1
Transformation results
A single RDF data model
Multiple RDF in XML
Transformation of RDF Using DOM
51Two System Architectures
52RDF Grammar to Yacc Rules
An RDF Grammar Rule RDF 'ltrdfRDFgt' obj
'lt/rdfRDFgt' Revision RDF xmlDeclaration
stgRDF obj etgRDF xmlDeclaration lt?xml
version 1.0 encoding gt encoding
encoding coding empty stgRDF 'lt
rdf RDF namespaceDef xmlBase gt
empty etgRDF 'lt / rdf RDF gt empty
Yacc Rules def p_RDF(t) 'RDF_file
xmlDeclaration RDFRule global triplec
tripleclen(triple) storeNamaspace()
storeResource() storeProperty()
storeObject() storeTriple()
displayTripleTable() def p_xmlDeclaration(t)
'''xmlDeclaration declaration
empty''' def p_RDFRule(t) '''RDFRule
stgRDF obj etgRDF obj'''
def p_stgRDF(t) 'stgRDF LP rdf RDF
namespaceRule xmlbaseRule RP' def p_etgRDF(t)
'etgRDF LP DIV rdf RDF RP' def
p_namespaceRule(t) '''namespaceRule
namespace empty''' def
p_xmlbaseRule(t) '''xmlbaseRule xmlbase1
empty''' def p_empty(t)
'empty ' pass
53RDF Grammar to DCG Rules
An RDF rule description'ltrdfDescription'
idAboutAttr? bagIdAttr? propAttr '/gt'
'ltrdfDescription' idAboutAttr? bagIdAttr?
propAttr 'gt propertyElt
'lt/rdfDescriptiongt'
typedNode The DCG rule description(_) --gt
halfSTG('Description',NS),(idAboutAttr(IdAboutAttr
)), (bagIdAttr(BagIdAttr)),propAttrStar(I
dAboutAttr), ('/gt''gt',
propertyEltStar(_,IdAboutAttr),fullETG('Descriptio
n',NS)), reificationOfStatements(IdAboutAt
tr,BagIdAttr),! typedNode.
DCG rules for converting RDF to Triples and
frames RDF to Triple obj(Obj) --gt
container(Obj)description(_),getAllTriples(Obj)
. RDF to KSL obj(Obj) --gt
container(Obj)description(_),getKSLDocument(Obj)
.
54(No Transcript)
55(No Transcript)
56(No Transcript)
57(No Transcript)
58(No Transcript)
59(No Transcript)
60Conclusion
- The Web is evolving toward automation of resource
consumption and services - Electronic Business
- Semantic Web and Services
- The Semantic Web Service Architecture is probably
an integration of the abstractions of services
for various functional areas. - Commercial applications, including B2B, and B2C
- Grid computing
- Ubiquitous computing
- Information services