1 / 59

An Introduction to OSLC and Linked Data

An Introduction to OSLC and Linked Data. OSLC: Lifecycle integration inspired by the web. Objectives and Pre-requisites. Objectives: You will gain an understanding of the OSLC community, linked data, and the OSLC specifications OSLC = Open Services for Lifecycle Collaboration Pre-requisites:

roldan
Download Presentation

An Introduction to OSLC and Linked Data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. An Introduction to OSLC and Linked Data OSLC: Lifecycle integration inspired by the web

  2. Objectives and Pre-requisites Objectives: You will gain an understanding of the OSLC community, linked data, and the OSLC specifications OSLC = Open Services for Lifecycle Collaboration Pre-requisites: none Recommended reading: http://www.linkeddatatools.com/introducing-rdf http://3roundstones.com/linked-data-101/linked-data-tutorial/

  3. What’s next The OSLC community Linked data and RDF An example The OSLC specifications

  4. The Integration Problem Point-to-point Integrations don’t scale Monocultures lock you in Maintenance, management, and change costs go up over time Ongoing and unexpected costs drain resources End-user productivity suffers: Either stuck with the wrong tool, stuck doing manual integration; often stuck doing both Creating new integrations is unpredictable Past choices restrict present action and future vision Integrations consume more of the IT budget: integration failures are the top 2 causes of software project delays* More limited ability to respond to change Constrained by exhausted IT budget and lower productivity * Commissioned study conducted by Forrester Consulting on behalf of IBM.

  5. OSLC and Open Community: open collaboration, better integration Identify Scenarios Iterate on working drafts Call it a specification Gain technical consensus, http://open-services.net

  6. The Basics: What is OSLC, and why should I care? • OSLC is an open community building practical specifications for integrating software OSLC is beneficial to many stakeholders

  7. OSLC’s Simple Solution Users can work seamlessly across their tools Architecture of the Web Standard Interfaces Automation Linked Data “Just Enough” integration Increased reuse Increased traceability Monitoring Decreased maintenance costs Better visibility OSLC is an open and scalable approach to lifecycle integration. It simplifies key integration scenarios across heterogeneous tools

  8. OSLC’s Big Picture The Resource for OSLC Implementers Open Services for Lifecycle Collaboration Lifecycle integration inspired by the web Tests, Libraries, Samples, Examples, Reference Implementations Future Home of OSLC Spec Dev LINKED DATA PLATFORM WORKING GROUP Scenario-driven & Solution-oriented Leading choice for strategic integration technology Generally applicable: specs available for many domains covering ALM, DevOps, ISM, and PLM OSLC: Inspired by the web Proven Free to use and share Open Changing the industry Innovative

  9. Eclipse Lyo • Eclipse project created with the goal of providing tools to enable adoption of OSLC specifications. • Content includes • Code libraries (Java, Perl, others under development) • Give developers tools to ease OSLC implementations • Reference implementations of specifications • Provide a starting point for new integrations • Test suites and test reporting. Covers OSLC Core, CM, QM, RM and Asset today. • Accelerate and assess development • Samples, tutorials and documentation • Working samples of OSLC integrations with Bugzilla, Excel, Jazz tools and more. http://eclipse.org/lyo

  10. What’s next • The OSLC community • Linked data and RDF • An example • The OSLC specifications

  11. Requirements Validation Tests Design Implementation T1 R1 D1 I1 R2 D2 I2 T2 Tool A Tool B Tool C Tool D OSLC turns data into...

  12. Requirements Validation Tests Design Implementation T1 R1 D1 I1 R2 D2 I2 T2 Tool A Tool B Tool C Tool D ...connected information... validates validates satisfy implements satisfy implements validates validates Does every requirement have a test to validate it? Which requirements for the UI are related to test cases that failed on their last run?

  13. validates validates satisfy implements satisfy implements validates validates ...that can facilitate applied knowledge Requirements Validation Tests Design Implementation User Interface T1 R1 D1 I1 Release R2 D2 I2 T2 Processing Engine Tool A Tool B Tool C Tool D Why is the number of failed test cases for the UI increasing in each iteration? How much faster is work progressing on the UI versus the Processing Engine?

  14. OSLC links lifecycle data

  15. Linked Data and RDF • Tim Berners-Lee’s four principles for linking data: • Use URIs as names for things • Use HTTP URIs so that people can look up those names • When someone looks up a URI, provide useful information using the standards (RDF, SPARQL) • Include links to other URIs so that they can discover more things “Instead of defining a new data model, OSLC’s resource and property-value approach is based on industry standard Resource Description Framework (RDF) data model.” Adapted from: http://open-services.net/bin/view/Main/ OslcCoreSpecification

  16. RDF Concepts • OSLC applies some RDF key concepts: • Graph data model • URI-based vocabulary • Format - Serialization syntaxes (RDF/XML, Turtle, JSON) • Datatypes • Literals • Expression of simple facts • Entailment • We’ll briefly look at some of them.

  17. Subject Object Predicate Amanda Car owns Requirement 1 Test Case 1 validates 1. OSLC uses an RDF graph data model The predicate provides the property or relationship between the subject and object. Adapted from: http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#section-data-model

  18. 2. OSLC uses a URI-based vocabulary • When there is a need to identify anything in OSLC, use a URI (there are a few exceptions). • Using URIs allows everything to be linked together. It also allows common agreed-upon meaning for relationships and for resource types <http://...Test Case 1> <http://...validates> <http://...Requirement 1> OSLC Core URI Naming Guidance: http://open-services.net/wiki/core/OSLC-Core-URI-Naming-Guidance/

  19. 3. OSLC allows different RDF formats • The RDF model provides for describing RDF triples. There are various supported formats. Some are specialized for RDF (Turtle) and others are derived from existing formats (XML, JSON). These formats can be exchanged between different applications (tools). • OSLC allows different types of format: • RDF/XML • Turtle • JSON OSLC Core Specification: http://open-services.net/bin/view/Main/OslcCoreSpecification

  20. Examples of different OSLC notations Object Predicate Subject <http://...Test Case 1> <http://...validates> <http://...Requirement 1> <http://example.com/TestCases/1> a oslc_qm:TestCase ; oslc_qm:validatesRequirement <http://example.com/Requirements/1> Turtle { "rdf:about": "http:\/\/example.com\/TestCases\/1", "rdf:type": [ { "rdf:resource": "http:\/\/open-services.net\/ns\/qm#TestPlan" } ], "oslc_qm:validatesRequirement": { "rdf:resource": "http:\/\/example.com\/Requirements\/1" } } JSON <oslc_qm:TestCase rdf:about="http://example.com/TestCases/1"> <oslc_qm:validatesRequirement rdf:resource="http://example.com/Requirements/1"/> </oslc_qm:TestCase> RDF/XML

  21. What’s next • The OSLC community • Linked data and RDF • An example • The OSLC specifications This example is adapted from http://3roundstones.com/linked-data-101/linked-data-tutorial/ [David Wood, 3RoundStonesInc. November2011]

  22. Here’s a fictional project • Existing product: Lunar Rover 3.0 • New Release: Lunar Rover 3.1 • Main goal is to improve remote steering • Release to orbit date: September 20, 2014

  23. Let’s look at the requirements domain Requirement 28465 Improve Remote Steering Lunar Rover 3.1 owner release Bob priority High owned by Iris created on November 24, 2011 release to orbit date September 20, 2014 state Implemented

  24. The same information as before, in tabular form

  25. Let’s look at the quality domain Test Case 35645: Test Steering Lunar Rover 3.1 release owner Janet priority High owned by Iris created on December 7, 2011 release to orbit date September 20, 2014 state Executed result pass

  26. Let’s add more relationships Test Case 35645: Test Steering validated by release Requirement 28465 Improve Remote Steering owner Janet Lunar Rover 3.1 release owner Bob priority High priority High created on owner December 7, 2011 Iris created on November 24, 2011 state release to orbit date Executed September 20, 2014 state Implemented result pass

  27. The same information as before, in tabular form

  28. Triple Subject = Resource = always a URI Predicate = Relationship or property = Always a URI Object = Could be a URI (which could refer to a resource) or a literal value (value to work with and show users) Test Case 35645: Test Steering Requirement 28465 Improve Remote Steering validated by priority High RDF triple (subject-predicate-object)

  29. Triple Subject = Resource = always a URI Predicate = Relationship or property = Always a URI Object = Could be a URI (which could refer to a resource) or a literal value (value to work with and show users) <http://...testcase35645_test_steering> <http://...requirement28465_ improve_remote steering> <http://...validatedby> <http://...priority> “High” RDF triple (subject-predicate-object)

  30. Let’s add more relationships Work Item 38759 implements Test Case 35645: Test Steering validated by release Requirement 28465 Improve Remote Steering owner Janet release owner Lunar Rover 3.1 Bob priority High priority High owner created on December 7, 2011 Iris created on November 24, 2011 state release to orbit date Executed September 20, 2014 state result Implemented pass

  31. <http://.../build> <http://.../testresult> <http://.../change request> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../test case> <http://.../testresult> <http://.../workitem> <http://.../req> <http://.../test case> <http://.../bug> <http://.../workitem> <http://.../change request> <http://.../req> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../build> <http://.../workitem> <http://.../bug> <http://.../test case> <http://.../req> <http://.../release> <http://.../build> <http://.../build> <http://.../bug> validate <http://.../build> <http://.../workitem> <http://.../test case> <http://.../req> <http://.../workitem> <http://.../build> <http://.../change request> <http://.../test case> <http://.../change request> <http://.../change request> <http://.../testresult> <http://.../req> <http://.../testresult> <http://.../testresult> <http://.../change request> There is a web of URIs around a development effort

  32. OSLC principles • Tim Berners-Lee’s four principles applied to OSLC: • Use URIs as names for things • In OSLC, each artifact in the lifecycle (for example, requirements, change requests, test cases...) is identified by a URI. • Use HTTP URIs so that people can look up those names. • In OSLC, each artifact in the lifecycle is an HTTP resource. Standard HTTP methods (GET, PUT, POST, DELETE) are used to interact with them. • When someone looks up a URI, provide useful information using the standards (RDF*, SPARQL) • Each OSLC resource has an RDF representation. OSLC resources can be queried using SPARQL. • Include links to other URIs so that they can discover more things. • OSLC lifecycle artifacts are linked by relationships (for example, validatesRequirement or testedByTestCase) which are defined by URIs.

  33. What’s next • The OSLC community • Linked data and RDF • An example • The OSLC specifications

  34. Anatomy of a specification Core: Specifies the primary integration techniques for integrating lifecycle tools – the standard rules and patterns for using HTTP and RDF that all the domain workgroups must adopt in their specifications OSLC Core Specification How What OSLC Change Mgt Specification Domain: Defines integration scenarios for a given lifecycle topic and specifies a common vocabulary for the lifecycle artifacts needed to support the scenarios. Example: The Core specification describes Delegated UIs and Creation Factories and states that OSLC service providers MAY provide them. The Change Management specification states that CM service providers MUST provide them. OSLC Requirements Specification OSLC Domain X Specification http://open-services.net/bin/view/Main/OslcCoreSpecification

  35. OSLC defines the following technical areas: 1. Discovery of capabilities 2. HTTP C.R.U.D. for resources 6. UI Previews for Resource Links 3. Standard resource representations 4. Querying for resources 5. Delegated UI for Create and Select

  36. First, some terminology (before we get to #1) These catalogs are used in the discovery of OSLC service providers. They help to simplify the configuration of tools that will integrate with providers of OSLC-defined services. OSLC Service Provider catalog provides example: IBM Rational Team Concert OSLC Service Provider A product or online service offering that provides an implementation of one or more OSLC Services, which may themselves implement different OSLC Domain specifications example: IBM Rational Team Concert project area provides an implementation of Set of capabilities that enable a web client to create, retrieve, update and delete resources managed by an ALM or PLM product or online service offering and associated with one OSLC Domain OSLC Service example: Change Management capability manages Managed by an OSLC Service, may have properties and may link to other resources including those provided by other OSLC Services. OSLC Resource example: work item (bug, defect, enhancement request)

  37. 1. Discovery of capabilities Starting from the catalog you can discover services and their capabilities. This is a common pattern in OSLC. OSLC capabilities: • Delegated UI Dialog allows you to create or find resources using a UI provided by the OSLC tool • Creation Factory allows you to create resources programmatically • Query Capability allows you to query for resources

  38. 2. HTTP C.R.U.D • OSLC allows manipulation of resources using standard HTTP C.R.U.D Create = POST Request = GET Update = PUT Delete = DELETE

  39. Resource Creation (Create) • Create a resource using HTTP POST, with the resource body in format of choice • URI for doing the POST is defined in the oslc:ServiceProvider in the oslc:creationFactory service • Response is a 201-Created with Location HTTP header indicating URI for resource • Request may be rejected for any number of reasons • Insufficient permissions • Missing required values • Invalid data choices • ...and … and ... • Valid resource formats for creation are defined by: • domain specifications • service provider may define its own resources and formats • optionally, by resource shape associated with creation factory

  40. Resource Retrieval (Request) • Use HTTP GET and standard HTTP content negotiation • Client uses HTTP Accept request header to specify desired resource formats • Use standard content(MIME) types • Partial representations can be requested via HTTP URL key=value pair as ?oslc.properties= • Allows for minimal retrieval of properties • Get Defect 123 (all properties) • Get Defect 123 (just title and status) Accept: application/json, application/xml GET http://bugs/123 GET http://bugs/123?oslc.properties=dcterms:title,oslc_cm:status

  41. Resource Modification (Update) • Use HTTP GET to get resource properties to be updated • You’ll get an ETag back • Change only the property values you need to change • Clients must preserve unknown content • Use HTTP PUT to send updated resource • Use If-Match HTTP request header with ETag, services may reject your request without it • HTTP PUT will completely replace the resource representation • We are moving towards PATCH – new HTTP verb http://tools.ietf.org/html/rfc5789 • It is possible to update only selected properties

  42. Resource Deletion (Delete) • Use HTTP DELETE on the resource identifier • May not be allowed • Response usually: • 200-OK • 204-No-Content • 400-Bad-Request • 403-Forbidden

  43. 3. Resource representations OSLC services should handle any type of resource • Not just those defined by OSLC Resources defined by OSLC use RDF data model • therefore are simply defined by their set of properties OSLC services MUST produce and consume RDF/XML representations • Clients and services MUST NOT assume any subset of RDF/XML Other representations are allowed such as: • XML: OSLC defined format that allows for consistent formats and is RDF/XML valid • JSON: Rules for representing namespaces and QName properties • Turtle: No constraints, use as is (may be preferred by future specs) • Atom Syndication Format: <atom:content> SHOULD be RDF/XML

  44. A few words on Resource Linking Turtle format for a bug resource (abbreviated) <http://example.com/bugs/2314> a oslc_cm:ChangeRequest ; dcterms:relation <http://server/app/bugs/1235> ; Links are properties where the property values are URIs Don't make assumptions about the target of links • OSLC supports an open model • Needed to achieve goal of “loosely coupled” integrations • Clients need to be flexible and expect anything Sometimes we need to provide additional data about links: label, owners, and so on. Special cases where links need more representation

  45. 4. Querying for resources Query capability has base URI Clients form query URI and HTTP GET the results OSLC services MAY support OSLC Query Syntax • http://open-services.net/bin/view/Main/OSLCCoreSpecQuery

  46. Query syntax overview Comparison Operators = test for equality != test for inequality < test less-than > test greater-than <= test less-than or equal >= test greater-than or equal 'in' operator: Test for equality to any of the values in a list. The list is a comma-separated sequence of values, enclosed in square brackets: in [“high”,”critical”] Filter results by appending “oslc.where=” with query clause to query base URI Only boolean operation allowed is “and” which represents conjunction • “or” for disjunction is not defined in the interests of keeping the syntax simple. Retrieve just what you want with “oslc.select=” Defined ordering using “oslc.orderBy=” Full-text search via “oslc.searchTerms=”

  47. Query syntax example http://example.com/bugs?oslc.where= cm:severity="high" and dcterms:created>"2010-04-01" http://example.com/bugs?oslc.prefix=qm= <http://qm.example.com/ns>& oslc.where=qm:testcase=<http://example.com/tests/31459> http://example.com/bugs?oslc.where= dcterms:creator{ foaf:givenName="John" and foaf:familyName="Smith"} Find high severity bugs created after April fools day Find bugs related to test case 31459 Find all bugs created by John Smith

  48. 5. Delegated UI renders the source app UI in the target app A delegated UI renders the source application UI in the target application. This example shows the contributed/delegated Rational Team Concert Work Item search dialog being rendered in an OSLC Quality Management application. 2.iframe's src set to delegated UI's URL 1.Click to launch delegated UI 4. Click OK. Sends message (link+label) to parent window 3.Selection made

  49. Delegated UI key points Delegated UIs support both creation and selection of resources Two communication protocols are supported for iframes: • HTML5 postMessage() ← preferred method • Supported in most modern browers • Window object's window.name • Supported in older browsers and Eclipse embedded web widget • Consumer selects which protocol to use, informs provider via fragment identifier Tremendous value for resource creation • Traditionally most service logic was communicated to client and new dialog built • Now the rules for creation and dialog change as needed Prefilling of creation dialog done by “creating” a dialog resource • HTTP POST of resource format to creation dialog URL, response is URL of dialog prefilled

  50. 6. UI Preview • Scenario supported: hover over link to get in context preview of resource • Simple resource format defined and retrieved using HTTP content negotiation Hover over link

More Related