jump to navigation

A simple demonstration of the power of semantic web using SPARQL January 24, 2013

Posted by Anand Mallaya in technology.
Tags: , , , , ,
add a comment

I want to find the actors of the movies in which two popular male actors of South India acted together.
The task is to find movies in which Mammootty and Mohanlal worked together and other actors in each of the movies.

Try googling it.

Now click on the link here
The link points to a SPARQL query to do the same! And look at the results on the bottom of the page!
bingo!
Welcome to Semantic Web!
Now graph search is invented by Facebook, or is it?

For more info Check out : dbpedia.org

Semantic Web "Layercake" (2006)

Semantic Web “Layercake” (2006) (Photo credit: Wikipedia)

Enhanced by Zemanta
Related Posts:
Advertisements

Videos on Semantic Web and Linked data July 25, 2010

Posted by Anand Mallaya in internet, technology, web.
Tags: , , , , , ,
add a comment

TED talks – Tim Berners Lee On the Next Web

TED -Talks – Tim Berners-Lee: The year open data went worldwide

TED Talks – Hans Rosling on HIV: New facts and stunning data visuals – A use-case of Linkeddata

Tim Berners lee talking about at Gov 2.0 Expo 2010

The Semantic Web of Data Tim Berners-Lee

practical semantic web – creating a catalog of Linked data April 4, 2010

Posted by Anand Mallaya in computers, internet, technology, tutorial, web.
Tags: , , , , , , ,
6 comments

Today I am going to work on creating a semantic web document. I am going to make a catalog of linked data datasets listed under linkeddata.org. Here is the list I am going to publish in RDF.

  1. choose the correct vocabulary – there are different generic vocabularies like Dublin Core, FOAF etc and specialized vocabulary like Dcat, Void etc. for creating catalogs. Dcat is designed for government data catalogs, so I choose VoID vocabulary, which is designed for single dataset provider. It uses generic vocabularies lke FOAF and DC as well.
  2. Select suitable tools – Tools to edit the RDF document. There are plenty of them ,in this case and RDF editor, like the Rhodonite tool for RDF editing and browsing. But I couldn’t understand it well because of poor documentation and help. So I chose an online VoID editor from DERI Galway. Though the result is in Turtle format, there are tools to convert turtle document to RDF/XML format. Like this one online : RDF Validator/converter rdfabout.com
  3. Creating the semantic grpah – first I am going to choose a dataset and add it to my catalog. To start with, I chose CrunchBase entry listed in linkeddata.org.  Go to VoID editor and add the following details in it
  4. Dataset URI:  http://cb.semsol.org/

    Dataset Homepage URIhttp://cb.semsol.org/

    Dataset Name:  Crunchbase

    Dataset Description:  RDFized Crunchbase entries

    Example Resource:  http://cb.semsol.org/company/yahoo

    Dataset Topic : business, database

    Vocabulary URIhttp://www.w3.org/1999/02/22-rdf-syntax-ns# , http://www.w3.org/2003/01/geo/wgs84_pos#,  http://cb.semsol.org/ns#

    Publisherhttp://semsol.com

    SPARQL endpoint : http://cb.semsol.org/sparql

    Now the dataset entry for cruchbase dataset is ready in VoID vocabulary, in the right side textarea. It is in Turtle notation.

    @prefix dcterms: <http://purl.org/dc/terms/&gt; .
    @prefix void: <http://rdfs.org/ns/void#&gt; .
    @prefix : <#> .
    ## your dataset
    <http://cb.semsol.org/&gt; rdf:type void:Dataset ;
    foaf:homepage <http://cb.semsol.org/&gt; ;
    dcterms:title “Crunchbase” ;
    dcterms:description “RDFized Crunchbase entries” ;
    dcterms:publisher <http://semsol.com&gt; ;
    void:sparqlEndpoint <http://cb.semsol.org/sparql&gt; ;
    void:vocabulary <http://cb.semsol.org/ns#&gt; ;
    void:exampleResource <http://cb.semsol.org/company/yahoo&gt; ;

    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#&gt; .@prefix foaf: <http://xmlns.com/foaf/0.1/&gt; .@prefix dcterms: <http://purl.org/dc/terms/&gt; .@prefix void: <http://rdfs.org/ns/void#&gt; .@prefix : <#> .
    ## your dataset<http://cb.semsol.org/&gt; rdf:type void:Dataset ; foaf:homepage <http://cb.semsol.org/&gt; ; dcterms:title “Crunchbase” ; dcterms:description “RDFized Crunchbase entries” ; dcterms:publisher <http://semsol.com&gt; ; void:sparqlEndpoint <http://cb.semsol.org/sparql&gt; ; void:vocabulary <http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; ; void:vocabulary <http://www.w3.org/2003/01/geo/wgs84_pos#&gt; ; void:vocabulary <http://cb.semsol.org/ns#&gt; ; void:exampleResource <http://cb.semsol.org/company/yahoo&gt; ; dcterms:subject <http://dbpedia.org/resource/Database&gt; ; dcterms:subject <http://dbpedia.org/resource/Business&gt; .

  5. Convert in to RDF/XML file(serialize) – copy the dataset details in turtle notation and go to RDF/XML converter tool. And paste the turtle notated content there and select input format as N-Triples/Turtle, and click validate. The result is given below.
  6. <?xml version=”1.0″?>
    <rdf:RDF xmlns:foaf=”http://xmlns.com/foaf/0.1/&#8221; xmlns:void=”http://rdfs.org/ns/void#&#8221;
    xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#&#8221;
    xmlns:dcterms=”http://purl.org/dc/terms/”&gt;
    <void:Dataset rdf:about=”http://cb.semsol.org/”&gt;
    <foaf:homepage rdf:resource=”http://cb.semsol.org/&#8221; />
    <dcterms:title>Crunchbase</dcterms:title>
    <dcterms:description>RDFized Crunchbase entries</dcterms:description>
    <dcterms:publisher rdf:resource=”http://semsol.com&#8221; />
    <void:sparqlEndpoint rdf:resource=”http://cb.semsol.org/sparql&#8221; />
    <void:vocabulary rdf:resource=”http://www.w3.org/1999/02/22-rdf-syntax-ns#&#8221; />
    <void:vocabulary rdf:resource=”http://www.w3.org/2003/01/geo/wgs84_pos#&#8221; />
    <void:vocabulary rdf:resource=”http://cb.semsol.org/ns#&#8221; />
    <void:exampleResource rdf:resource=”http://cb.semsol.org/company/yahoo&#8221; />
    <dcterms:subject rdf:resource=”http://dbpedia.org/resource/Database&#8221; />
    <dcterms:subject rdf:resource=”http://dbpedia.org/resource/Business&#8221; />
    </void:Dataset>
    </rdf:RDF>

  7. Now repeat the above process and create entries for all the datasets listed in the Linkeddata.org.
  8. Combine the RDF entries in to a single file, no need to copy all the tags but starting from <void:Dataset .. >only
    something like
    <?xml version=”1.0″?>
    <rdf:RDF xmlns:foaf=”http://xmlns.com/foaf/0.1/&#8221; xmlns:void=”http://rdfs.org/ns/void#&#8221;
    xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#&#8221;
    xmlns:dcterms=”http://purl.org/dc/terms/”&gt;
    <void:Dataset rdf:about=”http://cb.semsol.org/”&gt;


    </void:Dataset>
    <void:Dataset rdf:about=”http://dbpedia.org/”&gt;
    ….
    ….
    <void:Dataset>
    <void:Dataset rdf:about=”http://www.geonames.org/”&gt;


    <void:Dataset>
    </rdf:RDF>
  9. And the catalog is ready in RDF/XML with all the datasets added. Save it as a file with extension .rdf like Linked_data_catalog.rdf.  Now the machine can understand (if programmed wisely) to some extend what data are available there to convert in to meaningful information and then to  knowledge.
    You can find the catalog here: Linkeddata datasets catalog(note: not yet ready, comeback later )

Semantic Web bookmarks collection December 11, 2009

Posted by Anand Mallaya in internet, web.
Tags: , , , , , , , , ,
add a comment

Semantic Web

Twine – Organize, Share, Discover Information Around Your Interests | Twine
W3C Semantic Web Section
jaanix – tune the web
microformats.org
SemanticHacker
wiki.dbpedia.org : About
JavaScript Visual Wordnet
Distributed Object Computing Research Group Overview
SenseBot – semantic search engine that finds sense on the Web
Cognition :: Giving Technologies New Meaning
ProgrammableWeb – Mashups, APIs, and the Web as Platform
Planning a Semantic Web site
SPARQL Calendar Demo: Step-by-step Example – TechnicaLee Speaking
The Twitter Times: semanticwebnews

Data sources

Data Sets | Linked Data – Connect Distributed Data across the Web

The Map of Data – Sindice
Some Datasets Available on the Web » Data Wrangling Blog
Dapper: The Data Mapper
GeoWordNet

Articles

Why RDFa is the only Web scaleable metadata format for next-generation search engines
Semantic Web set for critical mass | Applications – InfoWorld
The Semantic Web in Action – Scientific American – December 2007
SitePoint » Obama’s Groundbreaking use of the Semantic Web
Cultivate Interactive Issue 7: Challenges for a Semantic Web
The original proposal of the WWW, HTMLized
The Semantic Web: opportunities and challenges for next-generation Web applications
4 New APIs: US Congress, Semantic Search, Fashion Search Engine, Read-Write Mapping
Tim Berners-Lee and the Semantic Web, Linked Data, RDF and a Worldwide Database « ResourceShelf
Official Google Blog: World Bank public data, now in search
When Linked Data Rules Fail at Frederick Giasson’s Weblog
The new smarter web – The Irish Times – Fri, Dec 04, 2009

Tools

Magpie – a tool for Semantic Web
Flex SPARQL Query Viewer
Create – Dorthy.com Alpha
HitCompanies | Find companies and export lists for free – Search Results
IYOUIT Portal – Share Life Blog Play
DailyPerfect, predictively personalized news, behavioral targeting technology
SearchMonkey – YDN
SemanticProxy
QDOS – measure your internet status
Visual Modeling Forum – Visual OWL
WikiProfessional Concept Web
Welcome to the Mulgara Project!
Neverspace : Main
WebProtégé
OpenLink Data Explorer
OpenLink iSPARQL
Sindice data inspector

Tutorials

SPARQL

SPARQL By Example
OpenLink AJAX Toolkit (OAT) Wiki : Interactive Sparql Query Builder Basic Tutorial
SPARQL tutorial
The Semantic Web and Challenges – Slide list
Tutorial on OWL
Semantic Puzzle
Web3.0

Companies

TopQuadrant
Asemantics
Zitgist – Quality Linked Data Products and Services
semsol – semantic web solutions
TriviumRLG LLC | Strategic Development of Information Assets
Talis
The Semantic Puzzle | Open World Assumptions
Ontotext – Semantic Technology Developer
Semantic Technologies Center
FrontPage – The Open Knowledge Foundation

Sites

Home | OpenCalais
TaskForces/CommunityProjects/LinkingOpenData/SemWebClients – ESW Wiki
The Transducer
Tom Heath – Home
Semantic Agent – Programming Multi Agent Systems in SWRL
ebSemantics – enabling Semantic Web based E-Commerce
8th International Semantic Web Conference (ISWC 2009)
Seminal resources on general semantics and ontologies ? – Semantic Overflow
Semantic Overflow
The Cambridge Semantic Web Meetup Group (Cambridge, MA) – Meetup.com
Tones – Home
Bluereek
BBC – Music – Home
backstage.bbc.co.uk :: Front Page :: |BBC’s developer network to encourage innovation and support new talent
Events/BONyConference – STLab
Linked Open Data Around-The-Clock
CKAN – Comprehensive Knowledge Archive Network
SchemaWeb – RDF schema directory
Linkeddata research centre at DERI
Factual
New York Times
Ordnance Survey – UK
Headup
Linked data at Guardian