SlideShare uma empresa Scribd logo
1 de 53
Baixar para ler offline
Semantic
Modeling
 A
query
language
for
the
21st
century

            Clifford
Heath
Semantics
• The
shared
meanings
of
a
community
• Expressed
in
facts
Here,
a
model
is:
• Standard
for
comparison
• Simplified
representation
of

  the
real
world
• NOT
a
prototype
or
mockup
Communicate!
                   Models must be expressed in a way
                   that allows all parties to understand
                          and contribute to them




Flickr, mknowles
ActiveFacts
project
          A project of Data Constellation




• Constellation
Query
Language
• Constellation
API
• GUI
design
tools
Elementary
Facts
are
simple



    e.g.
This
person
is
called
‘John’
The
elementary
form
   must
be
our
code


• Models
must
be
executable
• Tools
must
handle
the
ramifications
ActiveFacts
Generators


• CQL
or
ORM2
input
• Ruby,
SQL
output
• Later,
C#,
Java,
etc,
or
write
your
own
   All code you will see in
   this part is as generated
ORM2
Example




This and all other ORM2 examples were created using NORMA, the Neumont ORM2 Architect
CQL
and
ORM2
 side
by
side
Value
Types

ORM2:




    Each
statement
creates
or
implies
two
ValueTypes
Entity
Types
ORM2:

CQL:
                                   =




  Custom reading:
Fact
Types

ORM2:

CQL:
One­to­one




or
more
accurately:
Objectified
Fact
Types

ORM2:

CQL:



and
then
we
can:
Ternary
and
higher




subset:
Composite
Identification
ORM2:



CQL:




                     ... Two Fact Types, each with 2 readings!
Subtypes,
etc
                                  (non-identifying
                                     supertype)
ORM2:



CQL:




              also: unary fact type, ring constraint, XOR constraint
Fact
Instances
Value
Type:

Entity
Type:

Composite:


                                   ...
note
the
join
over
Person




Join
Contraction:


                    ...
the
contracted
form
isn’t
implemented
yet!
Subset
constraints
Mandatory
/
Exclusive

 Mandatory
and
exclusive




      Also
mandatory
non­exclusive,
      Exclusive
non­mandatory
Equivalence
Join
constraints




“Product”
is
the
same
instance
in
both
clauses
Code
Generation
From   
ORM
to
CQL
Mapping
From
Facts
to
ER
                ...Halpin




• Identifiers
define
keys
• Decide
absorption using uniqueness
• Composition
­
makes
composite
fact
types
• Other
constraints
can
be
enforced
too
SQL
Composition
Generated
SQL
­
today

• Tables
• Columns
• Primary
keys
/
Unique
constraints
• Foreign
Key
constraints
Generated
SQL
­
coming

• CHECK
constraints
• Indexes
over
views
where
needed
• Triggers
if
nec.
• Automatic
Migration
 • even
delayed
migration
Generated
Ruby
Ruby
API


• Uses
meta
programming
• Relationships
create
both
methods
• Implements
multiple
inheritance
• Excludes
Readings
(for
now)
No
need
to

 generate
the
code
• Simply
‘require’
the
CQL
• ActiveFacts
generates
and
eval’s
Ruby
• Open
classes
allow
you
to
extend
them
• No
need
to
edit
generated
code
API
Documentation


• Every
Role
has
a
method
• ORM2
diagram
is
API
documentation
• Could
also
generate
documentation
<DogFood>
ActiveFacts uses its generated Ruby metamodel code
Programming
    and
 Persistence
Constellation
API


• Constellation
is
a
population
of

  fact
instances
over
a
vocabulary
Constellation
API

• A
Vocabulary
is
a
Ruby
module
• Every
concept
is
a
class
• Every
instance
is
of
a
concept
                              

(no
raw
values)


• No
duplicate
instances
• Fully
cross­referenced
• No
new()
­
just
assert
/
deny
Persistence
     (not
implemented
yet)




• One
query
for
each
user
action
• Each
query
yields
a
constellation
• Assert/deny
any
facts,
then
• One
save()
• Constraint
enforcement
• Changes
get
saved
transactionally
Queries
 (work
in
progress)
Simple
Query


Person
has
given­Name
‘Daniel’?
Deriving
Fact
Types

family­Name
controls
Company
:
  Person
directs
Company,
  Person
has
family
Name;


family
Name
controls
Company
‘Acme,
Inc’?
family
Name
controls
Company?
family
Name
‘Heath’
controls
Company?
Query
nesting


• A
query
can
invoke
derived
fact
types
• Sub­queries
return
distinct
instances
        (handles
SQL’s
DISTINCT

and
GROUP
BY)

• Aggregation
functions
as
per
SQL
• Goal:
more
power
than
SQL
SELECT
“returning”

    family
Name
controls
Company
:
      Person
directs
Company,
      Person
has
family
Name,
      returning
Person,
        by
Company;


• “returning”
makes
Person.given_name
available
• “returning
by”
applies
sorting
• Inner
join
semantics
apply
if
family
Name
is
unknown
“returning”
is
transitive

normal
stuff
for
Person:
 maybe
Person
was
born
on
birth
Date,
 maybe
Person
is
Employee,
 Employee
has
EmployeeNr,
 returning
birth
Date,
EmployeeNr;



Person
is
called
family­Name
‘Smith’,
  normal
stuff
for
Person?
Transitive
queries

Employee
works
under
Manager
:
 Employee
is
supervised
by
Manager
[transitive];




Employee
works
under
Manager
473?
either/or

family
Name
is
associated
with
Company
:
  Person
(as
Director)
directs
Company
or
   Person
works
at
Company,
  Person
has
family
Name;
Units
Pane
has
Area:
 Pane
of
glass
has
Width,
 Pane
of
glass
has
Height,
 Width
*
Height
=
Area;


large
Pane:
  Pane
has
Area,
Area
>=
5
foot^2;

large
Pane?

          Width
and
Height
may
be
stored
in
millimetres!
Date
and
Time
Person
is
adult:
  Person
was
born
on
birth
Date,
  birth
Date
<
Now
­
18
years,
    returning
birth
Date;



          future:
“Person
was
born
on
birth
Date
before
18
years
ago”
Future
work

• API
Persistence
and
DBMS
adapters
• Queries,
including
drag­drop
GUI
• Units
support
• Other
languages
(natural
and
computer)
• APRIMO,
a
web­hosted
semantic
designer
• Reverse
engineering
• Automatic
migration
Demonstrations
 and
Questions
Clifford
Heath
Available
for
consulting
and
training




                     http://dataconstellation.com/

Mais conteúdo relacionado

Destaque

Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
Technische Universität München
 
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
PaleFire
 
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
Dobrica Pavlinušić
 
Poaching LG15: ARG-style
Poaching LG15: ARG-stylePoaching LG15: ARG-style
Poaching LG15: ARG-style
PaleFire
 

Destaque (20)

A Semantic Data Model for Web Applications
A Semantic Data Model for Web ApplicationsA Semantic Data Model for Web Applications
A Semantic Data Model for Web Applications
 
Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
Smart Models for Smart Cities - Modeling of Dynamics, Sensors, Urban Indicato...
 
Freebase Schema
Freebase SchemaFreebase Schema
Freebase Schema
 
Language acquisition
Language acquisitionLanguage acquisition
Language acquisition
 
Freebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebFreebase, RDF and the Semantic Web
Freebase, RDF and the Semantic Web
 
Euronem Zambia 2008
Euronem Zambia 2008Euronem Zambia 2008
Euronem Zambia 2008
 
Test
TestTest
Test
 
Wiki: Open Collaborative Learning Environment
Wiki: Open Collaborative Learning EnvironmentWiki: Open Collaborative Learning Environment
Wiki: Open Collaborative Learning Environment
 
Denk- en discussiedag sept 2010: digitale collectie
Denk- en discussiedag sept 2010: digitale collectieDenk- en discussiedag sept 2010: digitale collectie
Denk- en discussiedag sept 2010: digitale collectie
 
Open Education in Virtual Worlds
Open Education in Virtual WorldsOpen Education in Virtual Worlds
Open Education in Virtual Worlds
 
The Attack of the Learning Clones
The Attack of the Learning ClonesThe Attack of the Learning Clones
The Attack of the Learning Clones
 
Εκπαίδευση Web 2.0 στο Δημόσιο
Εκπαίδευση Web 2.0 στο ΔημόσιοΕκπαίδευση Web 2.0 στο Δημόσιο
Εκπαίδευση Web 2.0 στο Δημόσιο
 
IAZ2013 - Gopress voor openbare bibliotheken
IAZ2013 - Gopress voor openbare bibliothekenIAZ2013 - Gopress voor openbare bibliotheken
IAZ2013 - Gopress voor openbare bibliotheken
 
Language Edupreneurship
Language EdupreneurshipLanguage Edupreneurship
Language Edupreneurship
 
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
Operation Payback (...is a bitch): Hacktivism at the Dawn of Copyright Contro...
 
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
Slobodni softver za digitalne arhive: EPrints u Knjižnici Filozofskog fakulte...
 
Poaching LG15: ARG-style
Poaching LG15: ARG-stylePoaching LG15: ARG-style
Poaching LG15: ARG-style
 
Ppt Demo Slideshare
Ppt Demo SlidesharePpt Demo Slideshare
Ppt Demo Slideshare
 
Towards an Instructional Design Motivational Framework to Address the Retenti...
Towards an Instructional Design Motivational Framework to Address the Retenti...Towards an Instructional Design Motivational Framework to Address the Retenti...
Towards an Instructional Design Motivational Framework to Address the Retenti...
 
Social Media & Web 2.0 Services for Choirs
Social Media & Web 2.0 Services for ChoirsSocial Media & Web 2.0 Services for Choirs
Social Media & Web 2.0 Services for Choirs
 

Semelhante a Semantic Modeling - A Query Language for the 21st century

Product Management In Scrum Kozlov
Product Management In Scrum KozlovProduct Management In Scrum Kozlov
Product Management In Scrum Kozlov
Alexey Krivitsky
 
The Lean Startup at Web 2.0 Expo
The Lean Startup at Web 2.0 ExpoThe Lean Startup at Web 2.0 Expo
The Lean Startup at Web 2.0 Expo
Venture Hacks
 
UW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
UW ADC - Course 3 - Class 1 - User Stories And Acceptance TestingUW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
UW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
Chris Sterling
 
2009 05 01 How To Build A Lean Startup Step By Step
2009 05 01 How To Build A Lean Startup Step By Step2009 05 01 How To Build A Lean Startup Step By Step
2009 05 01 How To Build A Lean Startup Step By Step
Eric Ries
 
Zinc Data Center Services
Zinc Data Center ServicesZinc Data Center Services
Zinc Data Center Services
jeanlaganiere
 
Transforming Contexts: UC DAAP talk, May 8, 2009
Transforming Contexts: UC DAAP talk, May 8, 2009Transforming Contexts: UC DAAP talk, May 8, 2009
Transforming Contexts: UC DAAP talk, May 8, 2009
Peter Jones
 

Semelhante a Semantic Modeling - A Query Language for the 21st century (20)

Product Management In Scrum Kozlov
Product Management In Scrum KozlovProduct Management In Scrum Kozlov
Product Management In Scrum Kozlov
 
The Lean Startup at Web 2.0 Expo
The Lean Startup at Web 2.0 ExpoThe Lean Startup at Web 2.0 Expo
The Lean Startup at Web 2.0 Expo
 
News Content Economics
News Content EconomicsNews Content Economics
News Content Economics
 
Cutbots - Presentation
Cutbots - PresentationCutbots - Presentation
Cutbots - Presentation
 
Power Forex Profit Principle
Power Forex Profit PrinciplePower Forex Profit Principle
Power Forex Profit Principle
 
GIPA
GIPAGIPA
GIPA
 
Roll-out of the NYU HSL Website and Drupal CMS
Roll-out of the NYU HSL Website and Drupal CMSRoll-out of the NYU HSL Website and Drupal CMS
Roll-out of the NYU HSL Website and Drupal CMS
 
From Work To Word
From Work To WordFrom Work To Word
From Work To Word
 
Creating a Winning Life Sciences Innovation Strategy in an Era of Scarcity
Creating a Winning Life Sciences Innovation Strategy in an Era of ScarcityCreating a Winning Life Sciences Innovation Strategy in an Era of Scarcity
Creating a Winning Life Sciences Innovation Strategy in an Era of Scarcity
 
Face Similarity 2008
Face Similarity 2008Face Similarity 2008
Face Similarity 2008
 
UW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
UW ADC - Course 3 - Class 1 - User Stories And Acceptance TestingUW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
UW ADC - Course 3 - Class 1 - User Stories And Acceptance Testing
 
Monetary Meltdown Madness
Monetary Meltdown MadnessMonetary Meltdown Madness
Monetary Meltdown Madness
 
2009 05 01 How To Build A Lean Startup Step By Step
2009 05 01 How To Build A Lean Startup Step By Step2009 05 01 How To Build A Lean Startup Step By Step
2009 05 01 How To Build A Lean Startup Step By Step
 
Sound Customer Strategy
Sound Customer StrategySound Customer Strategy
Sound Customer Strategy
 
Sound Customer Strategy
Sound Customer StrategySound Customer Strategy
Sound Customer Strategy
 
Society 3 0
Society 3 0Society 3 0
Society 3 0
 
Zinc Data Center Services
Zinc Data Center ServicesZinc Data Center Services
Zinc Data Center Services
 
Transforming Contexts: UC DAAP talk, May 8, 2009
Transforming Contexts: UC DAAP talk, May 8, 2009Transforming Contexts: UC DAAP talk, May 8, 2009
Transforming Contexts: UC DAAP talk, May 8, 2009
 
HTML Parsing With Hpricot
HTML Parsing With HpricotHTML Parsing With Hpricot
HTML Parsing With Hpricot
 
Authentic Advocacy, Cause Marketing, Digital, Social Media, Swarms, Case Studies
Authentic Advocacy, Cause Marketing, Digital, Social Media, Swarms, Case StudiesAuthentic Advocacy, Cause Marketing, Digital, Social Media, Swarms, Case Studies
Authentic Advocacy, Cause Marketing, Digital, Social Media, Swarms, Case Studies
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Semantic Modeling - A Query Language for the 21st century