Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

SPARQL Graduates to W3C Recommendation

Posted by Zonk on Wed Jan 16, 2008 03:03 PM
from the mazel-tov dept.
KjetilK writes "The W3C just gave SPARQL the stamp of approval. SPARQL is a query language for the Semantic Web, and differs from other query languages in that is usable across different data sources. There are already 14 implementations of the spec available. Most of them are free software. There are also billions of relations out there that are query-able, thanks to the Linking Open Data project. The structured data of Wikipedia is now query-able at DBpedia. Also, have a look at Ivan Herman's presentations on this topic."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Query (Score:5, Funny)

    by minginqunt (225413) on Wednesday January 16 2008, @03:07PM (#22070772) Homepage Journal
    A query language for the semantic web...

    A what for the what now?

    I'd always assumed the semantic web was some meaningless and faded buzzword designed to keep the W3C away from useful stuff. Is it back again with a vengeance?

    THE SEMANTIC WEB II: THIS TIME IT'S FOLKSONOMY

    Eek.
    • Re: (Score:2, Funny)

      I spent a minute trying to find out what this was all about, and came upon this from Tim Berners-Lee:

      The Semantic Web isn't just about putting data on the web. It is about making links, so that a person or machine can explore the web of data. With linked data, when you have some of it, you can find other, related, data.

      Like the web of hypertext, the web of data is constructed with documents on the web. However, unlike the web of hypertext, where links are relationships anchors in hypertext documents

      • Re:Query (Score:5, Insightful)

        by minginqunt (225413) on Wednesday January 16 2008, @03:18PM (#22070906) Homepage Journal
        So, uh, yeah. I'm just as stumped as you are.

        Maybe I'm just your regular Homer, but reading that, I only make it as far as the second paragraph before my mind has already wandered off to a magical land of (Beer/Chocolate/Boobies)*.

        *delete as appropriate
      • It is really simple (Score:5, Informative)

        by KjetilK (186133) <kjetilk AT computas DOT com> on Wednesday January 16 2008, @03:31PM (#22071014) Homepage Journal
        Oh, it is actually really simple. See, first thing is that you link two documents. That's good old HTML. Then, you realise that you would want to link anything. Like persons. So, you give those persons a URI. You can't retrieve a person over the Internet, that's why it is a URI, not a URL, but you can get a description of the person. And then you realise that you want to say something about the nature of the relationship. So you put in a third URI that says something about the relationship. For example that the person knows that other person, or is his son, or something.

        so

        <http://www.kjetil.kjernsmo.net/foaf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.w3.org/People/Berners-Lee/card#i>

        simply says that I know timbl. I hope you're less stumped than you used to be.

        If you grok this, you've grokked 90% of RDF.
        • by smitty_one_each (243267) * on Wednesday January 16 2008, @03:40PM (#22071108) Homepage Journal
          Let me (perhaps over-) simplify this for you.
          Stupid Question Language (SQL) does great for two dimensional sets of data.
          Special Peoples' Advanced Retarded Question language (SPARQL) is meant for return results from tree-shaped lumps of textual data, and lets you use regular expressions to figure out where you are in the tree and match nodes and attributes and stuff.
          I think smart money is going to continue to arrange data in sets, and in five years, your SQL knowledge will still be serving you in quite good stead.
          • Yup, that's a gross oversimplification. SQL is not very well suited for the kind of stuff we're talking about. It is very constrained, and doesn't help you in large data integration problems. There are a lot of money in huge data integration problems. And that's where most of the money up to now has been, big industry merges, high-level execs realising their SQL doesn't cut it. And that's why Oracle is on board. But SPARQL is most interesting when people are exposing data on the open web, and we're starting
            • It's amazing how the generally agreed upon display format is tabular / grid for pretty much any large collection of data. The other agreed upon format is a tree view, but that is for a narrow view of data.

              It's easy to understand, it works well with the existing tools, and it fits our two dimensional screens. If you can't figure out how to get what you want out of a dataset with SQL, maybe you need to consider getting people with a specialized skillset. You don't get a Web developer to code in C. You don
              • If you can't figure out how to get what you want out of a dataset with SQL, maybe you need to consider getting people with a specialized skillset
                SQL has very limited expressiveness. As an example, you can't write a transitive closure of a relation in SQL. As a specific example example, if you have a table describing the parent relation, you can't write an SQL statement that will give you anyone who is the ancestor of someone else.
              • You assume 12 is the generated primary key. 12 could very well be a data point (age?, shoe size?). It is a perfectly value tuple.

                Layne
        • by _xeno_ (155264) on Wednesday January 16 2008, @04:51PM (#22072012) Homepage Journal

          Good lord, you actually have content there. Sweet Zombie Jesus, it's like if MySpace was irradiated with XML-Rays and mutated into a complete XML-based social network specification [xmlns.com], which requires everyone to write their own specifications and hand-edit XML files.

          That's just ... scary.

          • Re: (Score:3, Interesting)

            by KjetilK (186133)
            Hehe, well, yeah, FOAF's been around for ages, it predates pretty much the whole social networking craze. But the XML thing is kinda arbitrary, it is just one of several ways to write RDF. I don't really write RDF as XML by hand anymore, except for that single file. I might use RDF/XML if it is generated, if I hand-write, I use Turtle [w3.org].

            Anyway, FOAF + SIOC [sioc-project.org] + Policy Aware Web [policyawareweb.org] comprises pretty good solutions to the data portability and privacy considerations people have been screaming about lately.

    • Every time there is a story about the Semantic Web here, people trot out the old "It's utopian vaporware" nonsense. The technologies that stand behind the term "Semantic Web" have existed for nearly a decade now and have produced much fruit. Just see Visualizing the Semantic Web [amazon.com] by Geroimenko & Chen (Springer-Verlag, 2nd ed. 2005) which has plenty of real-world examples of using these technologies to get real work done.

      Sure, the average joe isn't producing semantically meaningful markup when he uses

      • by minginqunt (225413) on Wednesday January 16 2008, @03:22PM (#22070938) Homepage Journal
        Sure, the average joe isn't producing semantically meaningful markup when he uses his whizbang Web 2.0 sites, but then again what the average joe produces isn't worth all that much anyway. Even if the Semantic Web doesn't expand to include all Internet activity, it has and continues to do much good.

        Cutting a swathe through your charmingly misplaced snobbery for a second, the ideal thing would be for you to provide a useful example or two of this human thing called SEMANTIWEB, and explain to silly old me how it has already changed my life but I'm just too gosh darned ordinary to have noticed.
        • Well, no, it hasn't changed your life just yet, but you could check out a few links in the story, there is a lot of potential there. I'm not going to run off on conspiracy theories, but it is pretty clear that many big players likes to keep things under locks, that's a hurdle that makes this take slightly longer.

          In my submission, I gave an example query, which you can run at DBPedia with their standard prefixes:

          SELECT ?name ?birth ?death ?person WHERE
          { ?person skos:subject ;
                              dbpedia2:birth ?birth ;
                              foaf:name ?name .
          OPTIONAL { ?person dbpedia2:death ?death }
          FILTER (?birth "1945-01-01"^^xsd:date) . }
          ORDER BY ?name"

          What this says is "give me the name, birth data and death date of a person that has the following properties:
          It is a computer scientist, who has a birth day and a name and optionally a death date, then filter based on the date and order it by name.

          There are now billions of such stuff you can query, and if you're open minded, it could indeed change your life.
          • by Yold (473518)
            The thing that bugs me a lot about this so-called semantic web is its reliance on humans to be accurate. Our minds do not operate on the same clear-cut logic as a machine, in other words we are able to make inferences from semantics.

            To use your current example, what if your person was classified as a "programmer", or "software engineer" rather than a computer scientist? I understand that there are varying meanings for that word, my computer-science teach used to call first year students "computer-scientist
            • Theoretically, classification is not a singleton value but a list of values.

              My classifications could include "league bowler" "husband" "programmer" "database programmer" "texas resident" etc.

              Layne
            • A great example of this is the results for the sample query "Mayors of US cities higher than 1000m" -- of the ten results, Roger Reed, mayor of Fredericktown, Ohio, is mayor of a city that is 1090 feet above sea level.
          • In my submission, I gave an example query, which you can run at DBPedia with their standard prefixes:

            Maybe my own search skills are rusty, but I couldn't find actual documents anywhere in the site, just various gibberish examples. In other words, is there actual documentation - especially a list of properties - anywhere ?

    • Here's IMO the sign that the W3C needs a swift kick in the pills. A query language for the semantic web?

      The W3C is past its usefulness and needs a shakedown IMO.
      • by eh2o (471262)
        Unfortunately, many examples of what people call "Web 2.0" consists of half-assed implementations (more like "Web 1.5") created by programmers who never bothered to understand RDF. Tagging is a great example of this. Tagging is RDF with a missing relation operator, in other words--meaningless junk.

        RDF databases really shine when you start pulling XML from multiple data sources. All the feeds can then be dumped into a single generic three-column table, slap a SPARQL implementation on top of that, and you
      • by mmcuh (1088773)

        SPARQL is a query language for RDF data. Or more specifically, a pattern matching system for graphs with named nodes and edges. Yes, lots of people who talk about it use so many buzzwords that they sound like marketing dweebs on a caffeine overdose, but when you scrape off all the buzzwords and misdirected enthusiasm, what's left is actually somewhat useful.

        Though you might argue that they could just as well use a single database table and normal SQL.

  • by grassy_knoll (412409) on Wednesday January 16 2008, @03:14PM (#22070852) Homepage
    "Sometimes, I doubt your commitment to SPARQL Motion! "

    With apologies to Donnie Darko [imdb.com] ...
  • by curmudgeon99 (1040054) <[curmudgeon99] [at] [gmail.com]> on Wednesday January 16 2008, @03:15PM (#22070866) Homepage
    Though the Semantic web is not important for the casual user--I think Google is pretty good now--but for a machine trying to converse with a human being, the semantic web is a great advance. I myself have an open source project on Googlecode that had a place holder for just this item. Thank god it's coming along.
    • Glad you're working on it. But I can't agree Google is doing so good. One of my customers is a bunch of librarians, and they see a lot of people seeking advice on how to find information. The information is out there, but it is so hard getting the keywords right that people can't actually do it. So, they turn to skilled information gatherers, i.e. librarians, who, supported by people with extensive domain knowledge, can point them the right way. This has shown us that pure text search is overrated, people d
        • I blame search engine optimization. More and more, I get links to marketing drivel while trying to find real, useful information.
        • by Khalid (31037)
          Amen to that ! this is exactly how I do it now, directing my search towards discussion forums. Before that I used to use the defunct Dejanews sigh ! and then for a short time Google Groups, and got the best technical answers ever ! before Spam, people desaffection from Usenet and Google has rendered totally useless, re-sigh ! what a loss !
  • Yet another web markup thingy i have to learn..

    Web development surely is a bitch.
    • Re: (Score:2, Troll)

      by Shados (741919)
      Dont worrie about it. In general, if the W3C made something, it, by definition, will suck, even if its fully implemented by a bunch of vendors. So what you do is wait for the development tools that abstract it, and use that instead.

      W3C: Making over-engineered pieces of trash in an attempt to handle every single darn scenario in existance (instead of using the right tools for the right job) since 19...well, since ever.
      • by jlowery (47102)
        >Dont worrie about it. In general, if the W3C made something, it, by definition, will suck, even if its fully implemented by a bunch of vendors

        Which means all these open standards are nothing more than data interchange formats for third-party commercial tools. In order to use the standard, you have to buy a tool. Once again, open != free.
  • SPARQL (Score:5, Funny)

    by morgan_greywolf (835522) <morgan_greywolf@ ... m ['rr.' in gap]> on Wednesday January 16 2008, @04:06PM (#22071424) Homepage Journal
    Am I the only person who looked at that name 'SPARQL' and went 'Is that Sun's new name for MySQL [slashdot.org]?'

    • Actually, no. That was my first thought too +__+

      And until now I was also in the "huh, I thought 'semantic web' was little more than a buzzword a some markup no one pays attention too. Didn't think it were possible to make any use of" camp.
  • by HappyEngineer (888000) on Wednesday January 16 2008, @04:20PM (#22071592) Homepage
    I suppose it's cool to emphasize the semantic web use of SPARQL. But, at its core SPARQL is a query language for RDF data stores. It takes some learning, but using SPARQL against an RDF data store feels much cleaner than using SQL against a relational database. It's slower though. Much slower. That's why it works best for small data sets.

    My company stores the schema for our objects in RDF and use SPARQL to query against that schema. The actual data is saved to a relational database (our experiments with an all-RDF system concluded that it's just too slow for large data sets).

    The RDF data stores can exist in arbitrary places (they don't need to be local), but I wonder how slow that would be to query.

    Nevertheless, I encourage people to at least learn about this stuff. It's good for the same reason that learning about Ruby and Python is a good thing even if you only ever program in Java or C++. RDF and SPARQL make you start thinking about inferences and ways of storing data which allow you to derive more information from your information. When I first learned about RDF I had the same type of aha moments that I had when I first learned a dynamic language (FWIW, it was TADS3) after years of using static languages.
    • by radtea (464814)
      That's why it works best for small data sets

      It'll work great for the Semantic Web, then, which is only supposed to organize all the data in the world...

      Personally, I don't see why they don't just stick trees in relational databases. I was doing this in 1996 or thereabouts, and with the right schema it is fast and efficient.
      • Personally, I don't see why they don't just stick trees in relational databases.

        Mainly because trees are very bad at describing many real world things. If you want trees, use XML and XQuery, but it won't get you very far, IMHO.

        RDF is a graph model, much more powerful, and something that can truly scale.

    • by Zebra_X (13249)
      Code is slow, ideas are not.

      It is possible to make it fast - but this will not happen overnight.
  • SUNSHINE!
  • Free mod points to anyone who can give me the "So What" summary. The summary is useless and the linked articles failed to inform. Usually this just mans a circle jerk, but who know, there might be something useful or important in there.
  • I think the semantic web would be incredible, once it is widely implemented by content providers - a great example is dbpedia's query
    "Soccer player with tricot number 11 from club with stadium with >40000 seats born in a country with more than 10M inhabitants [aksw.org]"
    but, as far as i can see, it's just too tedious to implement. There should be something in between full-fledged semantics, and stuff like RSS which expose information in a rather un-semantic way.
    I just ran in to a problem trying to unify various
  • Guess we'll finally find out now. The Semantic Web remains Tim Berners-Lee's vanity project: well-intended but poorly thought out and unfortunately unwanted.
  • Three tidbits up front: I am very very good at most flavors of SQL, good with XML, but only fair on reading W3C standards documents. Which means that I stand a fair-to-middling chance of understanding what in the heck they are trying to say with "SPARQL"

    And after reading the standard, most of the articles, and looking at a couple of implementations, not only have I hit arbitrary but fairly high limits on what I will put up with before my eyes glaze over, I've also hit the 'don't give a s--- limitation as w

    • Yeah, performance issues has been a big problem, and it has driven many early adopters away from it. I've had some really bad performance problems myself. However, academics generally agree that it is because most of the implementation and tuning experience people have are with relational databases, the graph model of RDF are not among the hard problems to solve, everything is pretty much known, it is just getting the theory into running code, and performance will be as good as with relational databases.

      O

  • I see OpenLink Software credited at DBpedia as a shadowy participant from the corporate sector.

    http://www.openlinksw.com/index.htm [openlinksw.com]

    The guy mentioned turns out to be the founder and CEO, and he keeps a personal blog space with a lot of stuff about SPARQL, but man, protect your eyeballs from the vision gouging link clutter. Has all the visual appeal of a rental car insurance application form.

    http://www.openlinksw.com/blog/~kidehen/ [openlinksw.com]

    Even includes a link to the Zitgist data viewer. Amazingly, that domain was st
    • Man, that site is almost as bad as those stupid adver-tags that people have.....if it had the floating windows to go with it, it would be as bad.

      Layne
    • There's not much shadowy about Kingsley. He is a very nice guy who does a lot of good things. He is very visible and very active in the community, also on IRC.
      • by epine (68316)
        I only used the word "shadowy" because it took some digging from the DBpedia page where his company is mentioned to discover who he was, and I hadn't found a "who we are" page at DBpedia, and I still don't know exactly what Kingsley's company brings/brought to the table over at DBpedia, aside from being generally all over the SPARQL technology. Actually, he looks like a pretty energetic and enthusiastic guy, once you get past those eye-jabbing cyclopropane moieties on his blog.
  • Looks like there's a SPARQL grammar [aduna-software.org] from which JavaCC can generate a parser (and, since it's a JJTree grammar, an abstract syntax tree). Nice to have that piece of work available and BSD licensed....
  • I have experimented with RDF for many years (best toolkit for experimenting, I think, is the Swi-prolog semantic web library: http://www.swi-prolog.org/packages/semweb.html [swi-prolog.org]).

    I much prefer the higher level OWL representation with descriptive logic, but the problem is that support for lower level RDF is much better. There are commercial and open source OWL+descriptive logic reasoner packages, but there is much better coverage for RDF tools. In any case, with the exception of the expensive (commercial) Lisp ba
    • Alas, "dango [youtube.com]" is already taken. Calling them "meshes" or "networks" seems reasonable to me, though I suppose current usage is already well established.
    • We could always wait until 1989 for a revision if we don't like the 1970's version....or wait until 1992 for someone to make it look more like English.....

      Layne