You Are Here:

Community: Wiki

This page was last modified on 29 December 2007, at 16:47.

Mobile Device Specifications Database Access

From Forum Nokia Wiki

Title: Accessing RDF/XML metadata for Nokia Mobile Device Specifications


Description: This document provides the URL’s and information for accessing the Forum Nokia Device specifications for the purpose of tracking new and updated Nokia specifications for mobile devices.

1. NOKIA DEVICES AND PROPERTIES ARE DESCRIBE IN RDF/XML METADATA
http://sw.nokia.com/DP-1 Forum Nokia Device Profile
The OWL file: (Web Ontology Language) defines the available properties, values and labels.
Definition of the Forum Nokia Device Profile Ontology v1.17

1.1 How to find the OWL file:
http://sw.nokia.com/DP-1 (Start with Device Profile 1)
The link to the current OWL file: DP-1.17.owl is at the bottom, the version changes monthly.
Definition of the Forum Nokia Device Profile Ontology v1.17
title=”http://sw.nokia.com/schemas/nokia/DP-1.17.owl”>

1.2 The FN OWL schema for Flash Lite Properties
Property Ontology Labels
dp:flash_lite Flash Lite
dp:flash_lite_2_1 Flash Lite 2.1
dp:flash_lite_feature Flash Lite Feature

dp: refers to device profile properties


2. EXTRACTING MOBILE DEVICE SPECIFICATIONS FROM RDF/XML:
RDF/ XML Device data is not intended to be displayed in it native format. In order to use the information in web pages it needs to be parsed. Parsing can be used to reformat the device specifications to HTML or CSV format.
                               Device property
                                        ^
RDF/XML device data <- parser -> OWL schema


2.1 Downloading RDF/XML source as published on Forum Nokia pages.
This example to returns all Nokia device data for currently publish Nokia mobile devices.
Query sn.nokia.com to return all device metadata:
http://sn.nokia.com/query?format=rss&sortby=title&detail=full&mandatory-facets=xhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47Etype101EXUxhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47EType101Ee47ETe101ErminalX”
Use view source to see RDF/XML for all devices sorted numerically.


2.2 Flash Lite reformatted to HTML for a mobile device page:
http://www.forum.nokia.com/devices/6500_slide

<h3>Flash Lite:</h3>
<p>Flash Lite 2.1</p>
<h3>Flash Lite Feature</h3>
<p>Screensaver</p>
<p>Wall Paper</p>

Description of Flash Lite
<dp:FlashLite rdf:about=”http://sw.nokia.com/DP-1/FlashLite/flash_lite_2_1”>
2.3 Key value pairs in RDF/XML can be obtained and parsed for each device published on Forum Nokia device pages at http://www.forum.nokia.com/devices.

Example of parsing FN devices ontology as key value pairs:

Key: <dp:flash_lite rdf:resource=”http://sw.nokia.com/DP-1/FlashLite/flash_lite_2_1”/>
Value1: <dp:flash_lite_feature rdf:resource=”http://sw.nokia.com/DP-1/FlashLiteFeature/screensaver”/>
Value2: <dp:flash_lite_feature rdf:resource=”http://sw.nokia.com/DP-1/FlashLiteFeature/wall_paper”/>

Device 6500_slide
Key flash_lite_2_1
Value screensaver
Value wall_paper

3. NEW PROPERTIES AND VALUES ARE ADDED MONTHLY. THE SPELLING/CASE FOR THE LABEL CAN BE OBTAINED OR PARSED FROM THE LABEL IN THE OWL FILE:
<rdfs:label>JSR 211 Content Handler API</rdfs:label>
a. If a new value can be added under an existing property such as a new JSR then it can be handled automatically
b. Check to see if a new dp:property is added in the DP-1 (FN Device ontology)

There can be new values only or both properties and values.
dp:property_something_new
dp:property_something_new/new_value
dp:property_something_old/new_value

3.1 Sample lines from DP-1.17.owl :
Property: Flash Lite http://sw.nokia.com/DP-1/FlashLite
<rdf:Property rdf:about=”http://sw.nokia.com/DP-1/flash_lite”>


3.2 Example: Flash Lite 2.1 “Ontology”
http://sw.nokia.com/DP-1/flashlite/flash_lite_2_1
<voc:term>
<dp:FlashLite rdf:about=”http://sw.nokia.com/DP-1/FlashLite/flash_lite_2_1”>
<rdfs:label>Flash Lite 2.1</rdfs:label>
<voc:partOf rdf:resource=”http://sw.nokia.com/DP-1” />
<rdfs:isDefinedBy rdf:resource=”http://sw.nokia.com/schemas/nokia/DP-1.14.owl” />
</dp:FlashLite>


4. PARSING FOR UPDATES OR NEW DEVICES
XML parsers will get properties that are text strings (between tags) from the FN devices. In order to get all information that is included in a URI path string additional programming or text processing is needed.
Get dp:properties and property values as Key Value pairs for each device.
Get dp:properties and <rdfs:label>Flash Lite</rdfs:label> from the OWL file in step
Get key and label (last part of the URI string)
Get the key and its value(s)

Check against previous for new properties (key) and value(s).


5. THE PRESENTATION LABELS FROM THE ONTOLOGY TERMS CAN BE ACCESSED ONLINE (EITHER BY HUMAN OR MACHINE) FROM THE FOLLOWING PORTAL:

The presentation labels for our ontology terms can be Accessed online (either by human or machine) from the following portal:

http://sw.nokia.com/fnosig

Examples:

http://sw.nokia.com/fnosig/?get=summary&datatypes=precise&voc=http%3A%2F%2Fsw.nokia.com%2FDP-1&format=text%2Fhtml&type=&view=

http://sw.nokia.com/fnosig/?get=summary&datatypes=precise&voc=http%3A%2F%2Fsw.nokia.com%2FDP-1&format=application%2Frdf%2Bxml&type=&view=

To get a full RSS feed containing all metadata about all published devices (full syndication):

http://sn.nokia.com/query?format=rss&sortby=title&detail=full&mandatory-facets=xhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47Etype101EXUxhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47EType101Ee47ETe101ErminalX

To get a basic RSS feed containing minimal metadata about all devices (fast listing):

http://sn.nokia.com/query?format=rss&sortby=title&detail=basic&mandatory-facets=xhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47Etype101EXUxhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47EType101Ee47ETe101ErminalX

To get a simple listing of only the URI's of all published devices:

http://sn.nokia.com/query?format=list&sortby=title&detail=basic&mandatory-facets=xhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47Etype101EXUxhttpe58Ee47Ee47Eswe46Enokiae46Ecome47EFNe45E1e47EType101Ee47ETe101ErminalX

To get the metadata about a single device based on its URI:

http://sn.nokia.com/uriqa?uri=[DEVICE URI]


Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia