SlideShare uma empresa Scribd logo
1 de 83
Baixar para ler offline
Drupal Camp
  Jamie Taylor
What can semantic web
technologies do for you?
Tag your content
Topic Hubs
RDFa Powered Search
Data Exploration Widgets
Why Semantics?




A Brief History of Data Modeling
                 Photo CC-BY: http://en.wikipedia.org/wiki/File:McDonalds_on_Interstate_44.jpg
Ugly Tabular Data
A Simple Restaurant Schema
A Simple Restaurant Schema
Big Ugly Schema
What Went Wrong?
                            Scripting Languages
                            facilitate change

                            ....where is the data
                            model that does the
                            same?

Things change
Requirements change
User expectations change
Data structures change

Our data models aren’t keeping up
Graph Data Models
                      Deli Liiama
          Name

          Cuisine
     S1                  Deli
              Price

                          $
Graph Data Models
     Peking Inn                                  Deli Liiama
                                  Name

                                   Cuisine
           Name           S1                        Deli
                                       Price
          F7
                                                      $
                           Location
Cuisine        Location


Chinese                        Contained-by
                                               San Francisco
                          S4
                                 Name          North Beach
Extending Graph Data Models
                                                    Deli Liiama
Urban Chic                           Name
                     Decor
                                      Cuisine
                             S1                        Deli
             Music                        Price

                                                         $
                              Location

  Live DJ

                                  Contained-by
                                                  San Francisco
                             S4
                                    Name          North Beach
Integrating Graph Data Models
                   Deli Liiama
         Name
                                             Deli Liiama
                                 Name
A2
                                 Cuisine
                        S1                      Deli
                                     Price
 OnTap
                                                 $


Z6       Brand
                 Leinenkugel
     Brand
                 Pabst BR
Semantic Representation


Relationships are represented explicitly
Schema can be represented as a graph
Data integration is the union of two graphs
This makes creating, extending, and
combining data much easier than before
Plugable Data

         Data


                 Semantics allows an
Data



                 application to utilize
                 unanticipated new
  Data




          Data
                 data sources
Plugable Data
Data Portability
Data     Data


                Semantics allows data to
                be utilized by
         Data
                unanticipated new
                applications
Data
Data Portability




     http://dev.mqlx.com/~jamie/simile/timeline.html
Data Portability
Why Does This Work?

 Semantics facilitate shared meaning through
• Subject Identity
• Strong and Consistent Semantics
• Open APIS + Open Data
 These principles make it much easier to
 extend, combine, and integrate data
Just enough RDF
Just Enough RDF



RDF is a Data Model
   A very simple model!
Cosmos was written by Carl Sagan
(Cosmos) (was written by) (Carl Sagan)
Subject Predicate Object



(Cosmos) (was written by) (Carl Sagan)
Subject Predicate Object



(Cosmos) (was written by) (Carl Sagan)


               author       Carl
   Cosmos
                           Sagan
Subject   Which Cosmos?




(Cosmos)
Subject   Which Cosmos?




(Cosmos)
Identifiers are Everywhere
The humble URI

•URI’s provide strong references
 •Much like pointing in the physical
  world
             “this is red”
            “this is a pen”
 •a URIref is an unambiguous pointer
  to something of meaning
Subject                      Which Cosmos?




(Cosmos)



 http://rdf.freebase.com/ns/authority.openlibrary.book.OL3568862M
What do you mean, author?

http://rdf.freebase.com/ns/book.written_work.author




                   author                Carl
Cosmos
                                        Sagan

              vocabulary
There are billions of Carl Sagans...
      http://rdf.freebase.com/ns/en.carl_sagan




  Cosmos            author
0 ”
                           9 8
                       d “1
                   h e
              b lis
         p   u

              author                Carl
Cosmos
                                   Sagan
RDF Data Model


Nodes (“Subjects”)
connect via Links (“Predicates”)
to Objects
 •   either Nodes or Literals
Expressions of RDF


RDF has many (inconvenient) serializations
   •RDF-XML
   •N3
   •Turtle
   •NTriples
   •RDFa
In N-Triples:
 <http://rdf.freebase.com/ns/authority.openlibrary.book.OL3568862M>
 <http://rdf.freebase.com/ns/book.written_work.author>
 <http://rdf.freebase.com/ns/en.carl_sagan> .




                            author                  Carl
     Cosmos
                                                   Sagan
In N-Triples:
<http://rdf.freebase.com/ns/authority/openlibrary/book/OL3568862M>
<http://rdf.freebase.com/ns/book.written_work.date_of_first_publication>
“1980” .




     Cosmos                published                “1980”
URIs provide identity
http://rdf.freebase.com/ns/en.robert_cook


  Stability
  Simplicity
  Manageability
     PURL.org
Not all URL’s are good identifiers
A socially managed semantic database
All objects in Freebase have strong identifiers




http://rdf.freebase.com/ns/en.yorkie
Types of things in Freebase
5,203,825 Topics
14,110,006 Named Entites
Sources of Freebase Data
Freebase is user writable
schema = vocabulary
Freebase Suggest
Freebase Suggest in Drupal
Freebase Suggest in Drupal
jQuery Freebase Drupal Module
if (module_exists('jquery_freebase')) {
     jq_add('freebase');
     drupal_add_js(

      quot;$(document).ready(function() { $('#edit-taglabel').freebaseSuggest({})
      .bind('fb-select', function(e, data) {

              $('#edit-taguri').val('http://rdf.freebase.com/ns/' +
              new String(data.id).substring(1).replace(///g, '.'));})

      });quot;,

        'inline'
      );
  }


        http://drupal.org/project/jquery_freebase
                            Thomas Bonte - Belgium
RDF Graphs
 Carrie
              Starred In   Star Wars
 Fisher



              Starred In



Harrison                     Blade
              Starred In
 Ford                       Runner



              Starred In



 Daryl
Hannah
SPARQL Query
            Carrie
                        Starred In   Star Wars
            Fisher



                        Starred In



           Harrison                    Blade
                        Starred In
            Ford                      Runner



                        Starred In



            Daryl
           Hannah




 carrie_fisher         starred_in              star_wars
harrison_ford         starred_in              star_wars
harrison_ford         starred_in            blade_runner
daryl_hannah          starred_in            blade_runner
SPARQL Query
        carrie_fisher      starred_in         star_wars
       harrison_ford      starred_in         star_wars
       harrison_ford      starred_in       blade_runner
       daryl_hannah       starred_in       blade_runner



SELECT ? actor WHERE {
   fb:harrison_ford fb:starred_in         ?movie .
   ?actor           fb:starred_in         ?movie .
    FILTER (fb:harrison_ford != ?actor)
}
Review:
Why is identity important?
Data Integration
        B                            B



A                            A


        C                            C



              D



    E                            E
                         F
W3C Vision
    Tim Berners-Lee’s
    Giant Global Graph
The Layer Cake




  The Cake
     taken from http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/layerCake-4.png
Take What You Need




       taken from http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/layerCake-4.png
Linked Open Data Cloud
        (LOD)
Drupal is a part of the LOD Cloud




     http://drupal.deri.ie/cheese/node/20
Drupal is a part of the LOD Cloud
<http://drupal.deri.ie/cheese/node/20> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://drupal.deri.ie/cheese/ns#Cheese> .
<http://drupal.deri.ie/cheese/node/20> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <ov:Cheese> .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Title> quot;Ardrahan Cheesequot; .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#created> quot;2009-01-16T11:05:11Zquot;^^http://www.w3.org/2001/
XMLSchema#dateTime .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#changed> quot;2009-04-27T13:20:43Zquot;^^http://www.w3.org/2001/
XMLSchema#dateTime .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Source_milk> quot;cowquot; .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Country_origin> quot;Irelandquot; .
<http://drupal.deri.ie/cheese/node/20> <ov:origin> quot;Irelandquot; .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Picture> <http://drupal.deri.ie/cheese/sites/default/files/
Ardrahan_cheese_1.jpg> .
<http://drupal.deri.ie/cheese/node/20> <http://xmlns.com/foaf/0.1/depiction> <http://drupal.deri.ie/cheese/sites/default/files/
Ardrahan_cheese_1.jpg> .
<http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Description> quot;Ardrahan is a type of semi-soft cheese with
a pungent aroma, Ardrahan cheese has buttery textured honey-coloured centre with a complex delicate flavour. It has a washed rind which
grows into a golden colour, and its size and weight tend to vary slightly due to the fact that it is a hand-made product. In general the large
wheel weighs about 1.5 kg. There is also a small consumer wheel which weighs 300g. It is yellow-coloured.

Ardrahan also develops a nutty flavour with maturity. It has a unique flavour that lingers, leaving a very pleasant after-taste. It contains only
25% fat approximately. It is hand made using traditional methods and only whole milk and vegetarian rennet are used. quot; .
<http://drupal.deri.ie/cheese/node/20> <http://purl.org/dc/elements/1.1/description> quot;Ardrahan is a type of semi-soft cheese with a
pungent aroma, Ardrahan cheese has buttery textured honey-coloured centre with a complex delicate flavour. It has a washed rind which
grows into a golden colour, and its size and weight tend to vary slightly due to the fact that it is a hand-made product. In general the large
wheel weighs about 1.5 kg. There is also a small consumer wheel which weighs 300g. It is yellow-coloured.

Ardrahan also develops a nutty flavour with maturity. It has a unique flavour that lingers, leaving a very pleasant after-taste. It contains only
25% fat approximately. It is hand made using traditional methods and only whole milk and vegetarian rennet are used. quot; .

                             http://xxx/?q=node/X/rdf
RDF in HTML = RDFa
SUBJECT
@about - a URI, stating the RDF subject

PREDICATE
@rel - CURIEs, expressing relationships between two resources
@property - CURIEs, expressing relationships between a resource and a literal
@rev - CURIEs, expressing reverse relationship between two resources

OBJECT
@content - a string, representing a literal RDF object
@href - a URI resource expressing the RDF object (as in-line clickable)
@src - a URI resource expressing the RDF object (as in-line embedded item)
@resource - a URI resource expressing the RDF object

Special Predicate
@typeof - CURIEs expressing the RDF type of a subject (rdf:type)
RDF in HTML = RDFa
SUBJECT
@about - a URI, stating the RDF subject

PREDICATE
@rel - CURIEs, expressing relationships between two resources

OBJECT
@resource - a URI resource expressing the RDF object


 <div xmlns:fb=”http://rdf.freebase.com/ns/”
      about=”http://rdf.freebase.com/ns/en.jamie_taylor”
      rel=fb:people.person.place_of_birth>

   <span resource=”http://rdf.freebase.com/ns/en.saint_paul”/>

 </div>
RDF in HTML = RDFa
SUBJECT
@about - a URI, stating the RDF subject

PREDICATE
@property - CURIEs, expressing relationships between a resource and a literal

OBJECT
@content - a string, representing a literal RDF object


 <div xmlns:fb=”http://rdf.freebase.com/ns/”
      about=”http://rdf.freebase.com/ns/en.carl_sagan”
      property=fb:people.person.date_of_birth>

      <span content=”1934-11-09”/>

 </div>
What “concepts” are covered in content
                                  Like existing tagging,
                                         but with strong identifiers!
            <resource>

                 tagged




                  Tag        taggingDate     quot;2001-01-01quot;



         label            means

quot;textquot;                      <resource>
                                                  Strong identifier goes here!
Drupal Module
<resource>

                                                                    tagged




                                                                     Tag        taggingDate



                                                            label            means

<div class=quot;rdfaquot;                                  quot;textquot;                      <resource>

     xmlns:ctag=quot;http://commontag.org/ns#quot;>


    NASA's
    <a typeof=quot;ctag:Tagquot;
         rel=quot;ctag:meansquot;
         href=quot;http://rdf.freebase.com/ns/en.phoenix_mars_missionquot;
         property=quot;ctag:labelquot;>Phoenix Mars Lander</a>
    has deployed its robotic arm.

</div>
Drupal and the Semantic Web

Mais conteúdo relacionado

Semelhante a Drupal and the Semantic Web

Neo4J Open Source Graph Database
Neo4J Open Source Graph DatabaseNeo4J Open Source Graph Database
Neo4J Open Source Graph DatabaseMark Maslyn
 
RDA: Are We There Yet? Carterette Webinar S
RDA: Are We There Yet? Carterette Webinar SRDA: Are We There Yet? Carterette Webinar S
RDA: Are We There Yet? Carterette Webinar SEmily Nimsakont
 
An Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of DataAn Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of DataOlaf Hartig
 
The evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummitThe evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummitGuy Korland
 
LarKC Tutorial at ISWC 2009 - Data Model
LarKC Tutorial at ISWC 2009 - Data ModelLarKC Tutorial at ISWC 2009 - Data Model
LarKC Tutorial at ISWC 2009 - Data ModelLarKC
 
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018Ontotext
 
Jarrar: SPARQL - RDF Query Language
Jarrar: SPARQL - RDF Query LanguageJarrar: SPARQL - RDF Query Language
Jarrar: SPARQL - RDF Query LanguageMustafa Jarrar
 
Radically Open Cultural Heritage Data on the Web
Radically Open Cultural Heritage Data on the WebRadically Open Cultural Heritage Data on the Web
Radically Open Cultural Heritage Data on the WebJulie Allinson
 
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataSUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataDiego Valerio Camarda
 
Neo4j - The Benefits of Graph Databases (OSCON 2009)
Neo4j - The Benefits of Graph Databases (OSCON 2009)Neo4j - The Benefits of Graph Databases (OSCON 2009)
Neo4j - The Benefits of Graph Databases (OSCON 2009)Emil Eifrem
 
Neo4j -- or why graph dbs kick ass
Neo4j -- or why graph dbs kick assNeo4j -- or why graph dbs kick ass
Neo4j -- or why graph dbs kick assEmil Eifrem
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-descriptionSTIinnsbruck
 
Cassandra Data Modeling - Practical Considerations @ Netflix
Cassandra Data Modeling - Practical Considerations @ NetflixCassandra Data Modeling - Practical Considerations @ Netflix
Cassandra Data Modeling - Practical Considerations @ Netflixnkorla1share
 
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DBAthens Big Data
 
Leveraging the Power of Graph Databases in PHP
Leveraging the Power of Graph Databases in PHPLeveraging the Power of Graph Databases in PHP
Leveraging the Power of Graph Databases in PHPJeremy Kendall
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIsJosef Petrák
 
Introduction to Riak - Red Dirt Ruby Conf Training
Introduction to Riak - Red Dirt Ruby Conf TrainingIntroduction to Riak - Red Dirt Ruby Conf Training
Introduction to Riak - Red Dirt Ruby Conf TrainingSean Cribbs
 
Heterogeneous Web Data Search Using Relevance-based On The Fly Data Integration
Heterogeneous Web Data Search Using Relevance-based On The Fly Data IntegrationHeterogeneous Web Data Search Using Relevance-based On The Fly Data Integration
Heterogeneous Web Data Search Using Relevance-based On The Fly Data IntegrationThanh Tran
 

Semelhante a Drupal and the Semantic Web (20)

NCompass Live: RDA: Are We There Yet?
NCompass Live: RDA: Are We There Yet?NCompass Live: RDA: Are We There Yet?
NCompass Live: RDA: Are We There Yet?
 
Neo4J Open Source Graph Database
Neo4J Open Source Graph DatabaseNeo4J Open Source Graph Database
Neo4J Open Source Graph Database
 
RDA: Are We There Yet? Carterette Webinar S
RDA: Are We There Yet? Carterette Webinar SRDA: Are We There Yet? Carterette Webinar S
RDA: Are We There Yet? Carterette Webinar S
 
An Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of DataAn Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of Data
 
The evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummitThe evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummit
 
LarKC Tutorial at ISWC 2009 - Data Model
LarKC Tutorial at ISWC 2009 - Data ModelLarKC Tutorial at ISWC 2009 - Data Model
LarKC Tutorial at ISWC 2009 - Data Model
 
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
 
Jarrar: SPARQL - RDF Query Language
Jarrar: SPARQL - RDF Query LanguageJarrar: SPARQL - RDF Query Language
Jarrar: SPARQL - RDF Query Language
 
Radically Open Cultural Heritage Data on the Web
Radically Open Cultural Heritage Data on the WebRadically Open Cultural Heritage Data on the Web
Radically Open Cultural Heritage Data on the Web
 
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataSUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
 
Neo4j - The Benefits of Graph Databases (OSCON 2009)
Neo4j - The Benefits of Graph Databases (OSCON 2009)Neo4j - The Benefits of Graph Databases (OSCON 2009)
Neo4j - The Benefits of Graph Databases (OSCON 2009)
 
Neo4j -- or why graph dbs kick ass
Neo4j -- or why graph dbs kick assNeo4j -- or why graph dbs kick ass
Neo4j -- or why graph dbs kick ass
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-description
 
Cassandra Data Modeling - Practical Considerations @ Netflix
Cassandra Data Modeling - Practical Considerations @ NetflixCassandra Data Modeling - Practical Considerations @ Netflix
Cassandra Data Modeling - Practical Considerations @ Netflix
 
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
 
Leveraging the Power of Graph Databases in PHP
Leveraging the Power of Graph Databases in PHPLeveraging the Power of Graph Databases in PHP
Leveraging the Power of Graph Databases in PHP
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
 
Introduction to Riak - Red Dirt Ruby Conf Training
Introduction to Riak - Red Dirt Ruby Conf TrainingIntroduction to Riak - Red Dirt Ruby Conf Training
Introduction to Riak - Red Dirt Ruby Conf Training
 
RDF and SPARQL
RDF and SPARQLRDF and SPARQL
RDF and SPARQL
 
Heterogeneous Web Data Search Using Relevance-based On The Fly Data Integration
Heterogeneous Web Data Search Using Relevance-based On The Fly Data IntegrationHeterogeneous Web Data Search Using Relevance-based On The Fly Data Integration
Heterogeneous Web Data Search Using Relevance-based On The Fly Data Integration
 

Mais de Jamie Taylor

Freebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampFreebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampJamie Taylor
 
Geo Location Semantics
Geo Location SemanticsGeo Location Semantics
Geo Location SemanticsJamie Taylor
 
Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010Jamie Taylor
 
The next phase of Web2.0: Data
The next phase of Web2.0: DataThe next phase of Web2.0: Data
The next phase of Web2.0: DataJamie Taylor
 
NYC Semantic Web Meetup - Aug 2009
NYC Semantic Web Meetup -  Aug 2009NYC Semantic Web Meetup -  Aug 2009
NYC Semantic Web Meetup - Aug 2009Jamie Taylor
 
Freebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebFreebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebJamie Taylor
 

Mais de Jamie Taylor (7)

Freebase Schema
Freebase SchemaFreebase Schema
Freebase Schema
 
Freebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampFreebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code Camp
 
Geo Location Semantics
Geo Location SemanticsGeo Location Semantics
Geo Location Semantics
 
Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010
 
The next phase of Web2.0: Data
The next phase of Web2.0: DataThe next phase of Web2.0: Data
The next phase of Web2.0: Data
 
NYC Semantic Web Meetup - Aug 2009
NYC Semantic Web Meetup -  Aug 2009NYC Semantic Web Meetup -  Aug 2009
NYC Semantic Web Meetup - Aug 2009
 
Freebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebFreebase, RDF and the Semantic Web
Freebase, RDF and the Semantic Web
 

Último

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Último (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Drupal and the Semantic Web

  • 1. Drupal Camp Jamie Taylor
  • 2.
  • 3. What can semantic web technologies do for you?
  • 8. Why Semantics? A Brief History of Data Modeling Photo CC-BY: http://en.wikipedia.org/wiki/File:McDonalds_on_Interstate_44.jpg
  • 13. What Went Wrong? Scripting Languages facilitate change ....where is the data model that does the same? Things change Requirements change User expectations change Data structures change Our data models aren’t keeping up
  • 14. Graph Data Models Deli Liiama Name Cuisine S1 Deli Price $
  • 15. Graph Data Models Peking Inn Deli Liiama Name Cuisine Name S1 Deli Price F7 $ Location Cuisine Location Chinese Contained-by San Francisco S4 Name North Beach
  • 16. Extending Graph Data Models Deli Liiama Urban Chic Name Decor Cuisine S1 Deli Music Price $ Location Live DJ Contained-by San Francisco S4 Name North Beach
  • 17. Integrating Graph Data Models Deli Liiama Name Deli Liiama Name A2 Cuisine S1 Deli Price OnTap $ Z6 Brand Leinenkugel Brand Pabst BR
  • 18. Semantic Representation Relationships are represented explicitly Schema can be represented as a graph Data integration is the union of two graphs This makes creating, extending, and combining data much easier than before
  • 19. Plugable Data Data Semantics allows an Data application to utilize unanticipated new Data Data data sources
  • 21. Data Portability Data Data Semantics allows data to be utilized by Data unanticipated new applications Data
  • 22. Data Portability http://dev.mqlx.com/~jamie/simile/timeline.html
  • 24. Why Does This Work? Semantics facilitate shared meaning through • Subject Identity • Strong and Consistent Semantics • Open APIS + Open Data These principles make it much easier to extend, combine, and integrate data
  • 26. Just Enough RDF RDF is a Data Model A very simple model!
  • 27. Cosmos was written by Carl Sagan
  • 28. (Cosmos) (was written by) (Carl Sagan)
  • 29. Subject Predicate Object (Cosmos) (was written by) (Carl Sagan)
  • 30. Subject Predicate Object (Cosmos) (was written by) (Carl Sagan) author Carl Cosmos Sagan
  • 31. Subject Which Cosmos? (Cosmos)
  • 32. Subject Which Cosmos? (Cosmos)
  • 34. The humble URI •URI’s provide strong references •Much like pointing in the physical world “this is red” “this is a pen” •a URIref is an unambiguous pointer to something of meaning
  • 35. Subject Which Cosmos? (Cosmos) http://rdf.freebase.com/ns/authority.openlibrary.book.OL3568862M
  • 36. What do you mean, author? http://rdf.freebase.com/ns/book.written_work.author author Carl Cosmos Sagan vocabulary
  • 37. There are billions of Carl Sagans... http://rdf.freebase.com/ns/en.carl_sagan Cosmos author
  • 38. 0 ” 9 8 d “1 h e b lis p u author Carl Cosmos Sagan
  • 39. RDF Data Model Nodes (“Subjects”) connect via Links (“Predicates”) to Objects • either Nodes or Literals
  • 40. Expressions of RDF RDF has many (inconvenient) serializations •RDF-XML •N3 •Turtle •NTriples •RDFa
  • 41. In N-Triples: <http://rdf.freebase.com/ns/authority.openlibrary.book.OL3568862M> <http://rdf.freebase.com/ns/book.written_work.author> <http://rdf.freebase.com/ns/en.carl_sagan> . author Carl Cosmos Sagan
  • 43. URIs provide identity http://rdf.freebase.com/ns/en.robert_cook Stability Simplicity Manageability PURL.org
  • 44. Not all URL’s are good identifiers
  • 45. A socially managed semantic database
  • 46. All objects in Freebase have strong identifiers http://rdf.freebase.com/ns/en.yorkie
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53. Types of things in Freebase
  • 56. Freebase is user writable
  • 61. jQuery Freebase Drupal Module if (module_exists('jquery_freebase')) { jq_add('freebase'); drupal_add_js( quot;$(document).ready(function() { $('#edit-taglabel').freebaseSuggest({}) .bind('fb-select', function(e, data) { $('#edit-taguri').val('http://rdf.freebase.com/ns/' + new String(data.id).substring(1).replace(///g, '.'));}) });quot;, 'inline' ); } http://drupal.org/project/jquery_freebase Thomas Bonte - Belgium
  • 62. RDF Graphs Carrie Starred In Star Wars Fisher Starred In Harrison Blade Starred In Ford Runner Starred In Daryl Hannah
  • 63. SPARQL Query Carrie Starred In Star Wars Fisher Starred In Harrison Blade Starred In Ford Runner Starred In Daryl Hannah carrie_fisher starred_in star_wars harrison_ford starred_in star_wars harrison_ford starred_in blade_runner daryl_hannah starred_in blade_runner
  • 64. SPARQL Query carrie_fisher starred_in star_wars harrison_ford starred_in star_wars harrison_ford starred_in blade_runner daryl_hannah starred_in blade_runner SELECT ? actor WHERE { fb:harrison_ford fb:starred_in ?movie . ?actor fb:starred_in ?movie . FILTER (fb:harrison_ford != ?actor) }
  • 65.
  • 66.
  • 67.
  • 69. Data Integration B B A A C C D E E F
  • 70. W3C Vision Tim Berners-Lee’s Giant Global Graph
  • 71. The Layer Cake The Cake taken from http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/layerCake-4.png
  • 72. Take What You Need taken from http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/layerCake-4.png
  • 73. Linked Open Data Cloud (LOD)
  • 74.
  • 75. Drupal is a part of the LOD Cloud http://drupal.deri.ie/cheese/node/20
  • 76. Drupal is a part of the LOD Cloud <http://drupal.deri.ie/cheese/node/20> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://drupal.deri.ie/cheese/ns#Cheese> . <http://drupal.deri.ie/cheese/node/20> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <ov:Cheese> . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Title> quot;Ardrahan Cheesequot; . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#created> quot;2009-01-16T11:05:11Zquot;^^http://www.w3.org/2001/ XMLSchema#dateTime . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#changed> quot;2009-04-27T13:20:43Zquot;^^http://www.w3.org/2001/ XMLSchema#dateTime . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Source_milk> quot;cowquot; . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Country_origin> quot;Irelandquot; . <http://drupal.deri.ie/cheese/node/20> <ov:origin> quot;Irelandquot; . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Picture> <http://drupal.deri.ie/cheese/sites/default/files/ Ardrahan_cheese_1.jpg> . <http://drupal.deri.ie/cheese/node/20> <http://xmlns.com/foaf/0.1/depiction> <http://drupal.deri.ie/cheese/sites/default/files/ Ardrahan_cheese_1.jpg> . <http://drupal.deri.ie/cheese/node/20> <http://drupal.deri.ie/cheese/ns#cheese_Description> quot;Ardrahan is a type of semi-soft cheese with a pungent aroma, Ardrahan cheese has buttery textured honey-coloured centre with a complex delicate flavour. It has a washed rind which grows into a golden colour, and its size and weight tend to vary slightly due to the fact that it is a hand-made product. In general the large wheel weighs about 1.5 kg. There is also a small consumer wheel which weighs 300g. It is yellow-coloured. Ardrahan also develops a nutty flavour with maturity. It has a unique flavour that lingers, leaving a very pleasant after-taste. It contains only 25% fat approximately. It is hand made using traditional methods and only whole milk and vegetarian rennet are used. quot; . <http://drupal.deri.ie/cheese/node/20> <http://purl.org/dc/elements/1.1/description> quot;Ardrahan is a type of semi-soft cheese with a pungent aroma, Ardrahan cheese has buttery textured honey-coloured centre with a complex delicate flavour. It has a washed rind which grows into a golden colour, and its size and weight tend to vary slightly due to the fact that it is a hand-made product. In general the large wheel weighs about 1.5 kg. There is also a small consumer wheel which weighs 300g. It is yellow-coloured. Ardrahan also develops a nutty flavour with maturity. It has a unique flavour that lingers, leaving a very pleasant after-taste. It contains only 25% fat approximately. It is hand made using traditional methods and only whole milk and vegetarian rennet are used. quot; . http://xxx/?q=node/X/rdf
  • 77. RDF in HTML = RDFa SUBJECT @about - a URI, stating the RDF subject PREDICATE @rel - CURIEs, expressing relationships between two resources @property - CURIEs, expressing relationships between a resource and a literal @rev - CURIEs, expressing reverse relationship between two resources OBJECT @content - a string, representing a literal RDF object @href - a URI resource expressing the RDF object (as in-line clickable) @src - a URI resource expressing the RDF object (as in-line embedded item) @resource - a URI resource expressing the RDF object Special Predicate @typeof - CURIEs expressing the RDF type of a subject (rdf:type)
  • 78. RDF in HTML = RDFa SUBJECT @about - a URI, stating the RDF subject PREDICATE @rel - CURIEs, expressing relationships between two resources OBJECT @resource - a URI resource expressing the RDF object <div xmlns:fb=”http://rdf.freebase.com/ns/” about=”http://rdf.freebase.com/ns/en.jamie_taylor” rel=fb:people.person.place_of_birth> <span resource=”http://rdf.freebase.com/ns/en.saint_paul”/> </div>
  • 79. RDF in HTML = RDFa SUBJECT @about - a URI, stating the RDF subject PREDICATE @property - CURIEs, expressing relationships between a resource and a literal OBJECT @content - a string, representing a literal RDF object <div xmlns:fb=”http://rdf.freebase.com/ns/” about=”http://rdf.freebase.com/ns/en.carl_sagan” property=fb:people.person.date_of_birth> <span content=”1934-11-09”/> </div>
  • 80. What “concepts” are covered in content Like existing tagging, but with strong identifiers! <resource> tagged Tag taggingDate quot;2001-01-01quot; label means quot;textquot; <resource> Strong identifier goes here!
  • 82. <resource> tagged Tag taggingDate label means <div class=quot;rdfaquot; quot;textquot; <resource> xmlns:ctag=quot;http://commontag.org/ns#quot;> NASA's <a typeof=quot;ctag:Tagquot; rel=quot;ctag:meansquot; href=quot;http://rdf.freebase.com/ns/en.phoenix_mars_missionquot; property=quot;ctag:labelquot;>Phoenix Mars Lander</a> has deployed its robotic arm. </div>