Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21d93f9fa8d4603

Jump to content

Talk:Object Constraint Language

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 12 years ago by 2001:4CA0:0:F221:10B:9F85:C29:5EE8 in topic Any Examples?

Is it widely used

[edit]

Is it widely used?10:06, 2 January 2007 (UTC)

No and Yes. OCL is used in the writing of the UML specification. If you wish to implement a UML tool or truly understand the specification (for certification at the highest level), you'll need to understand the OCL.

Simple forms of OCL is used in many modelers to write constraints on diagrams, and OCL in this level is used in serveral UML books.

A handful of UML tools and add-ons understand the basics of OCL

On the other hand, with a limited OCL audience, it's generally preferred to write constraints based on the understanding level of the audience. While I like OCL, I would only use formal OCL for an audience of the other methdologists, leaving natural language and basic OCL for customers and programmers. Mjchonoles 20:50, 2 January 2007 (UTC)Reply


In several Web places there is a suggestion that OCL can be used as an object-oriented query language to object-oriented databases, similarly to SQL (for relational databases). Are such suggestions justified? Till now I have seen only limited implementation of OCL in Bold for Delphi. Any query language has no chances without query optimization. Does anybody started the research in this direction and where I can see the results? 9:08 AM, January 25,2007, Kaz

"OCL supplements UML by providing expressions that have neither the ambiguities of natural language nor the inherent difficulty of using complex mathematics." I know this text was in the original FOLDOC definition, but it's an extremely sweeping claim to make without justification or references. Maybe "OCL aims to supplement..." with a reference to somewhere that says so (if anywhere does)? -- 129.67.95.109 (talk) 09:37, 3 December 2008 (UTC)Reply

The link to the MIT paper is bad 2009-11-09 Bobdc (talk) 23:33, 9 November 2009 (UTC)Reply


Any Examples?

[edit]

It would be great if examples of OCL be included. Ken Loh (talk) 14:41, 26 October 2010 (UTC)Reply

The german version of OCL has a good example, see http://de.wikipedia.org/wiki/Object_Constraint_Language, one here could be based on that. — Preceding unsigned comment added by 2001:4CA0:0:F221:10B:9F85:C29:5EE8 (talk) 07:40, 16 July 2014 (UTC)Reply

Compare to SQL

[edit]

I'm just finishing reading the SQL page and I was looking for the analog with OCL. It's clear that OCL is very different in its intent. However, I was looking for the relationship between OCL and algebra. It would be useful to have more information on the syntax. I would appreciate to have a thoughtful critics also.domroy (talk) 16:05, 8 June 2011 (UTC)Dominic RoyReply