Wordswolf

Howl and the World Howls With You.

Category: Software Engineering

Word of the day: Friktison

Another Blast from the Past: Mobile Web Services

I’m continually amazed at how long ‘old’ internet posts and articles stick around.  While doing some digging into into a Java AJAX library for work, I ran across an article I had written for Java Developer’s Journal in 2003 titled “Mobile Webservices with kSOAP.”

Granted, this is a archived soft-copy of the print magazine article I’d written, so one might expect it to have a bit of longevity.  That said, it’s interesting to look back 14 years at the state-of-the-art Internet and mobile technologies and compare them to where we are today.

As for me, I now have a teenage daughter and my most recent print article isn’t about Java or web services, but Canadian Destroyers–“The ‘Rolls Royce Destroyers’: Canada’s First Made-to-Order Warships” is now available for download at Canadian Naval Review.  No need to hurry though–you might still be able to get it sometime in the next 14 years.

Cheers,

Sean

Options with RDF

Now, I don’t claim to be an RDF guru, far from it, however I have been working a lot with it recently at the office, and think I have a pretty good handle on it. For that reason, I’m blogging a bit about a pet peeve of how RDF is sometimes written by tools/people who don’t really understand it–or at least share my understanding of it.

In RDF if you want to have a list of items, you can use a container of either a <rdf:Bag> type or <rdf:Seq> depending on if you want an unordered, or ordered list. In each of them, you end up having a list of <rdf:li> list items. For people with HTML experience this is pretty simple.

What happens when you generate a list from a multi-select box or drop-down type Option selection widget? Well, it should simply create an XML/RDF structure thusly:

<RDF:Bag>
<RDF:li>Foo</RDF:li>
<RDF:li>Bar</RDF:li>
</RDF:Bag>

Only some people/tools add their own slice of XML:

<RDF:Bag>
<RDF:li>
<option>Foo</option>
</RDF:li>
<RDF:li>
<option>Bar</option>
</RDF:li>
</RDF:Bag>

Not only is this harder to read and understand in a large RDF graph, it generates completely unnessesary triples. Even in RDF, which is by far the most complex XML syntax I’ve worked with (save XMI from the OMG) the KISS principle should apply.

Cheers,

Sean

Technorati Tags: RDF

Powered by WordPress & Theme by Anders Norén

mautic is open source marketing automation