Ontologies / woc.ontology
Code Ontology
Original text (English), from: BioregistryAn ontology that represents object-oriented programming languages
- Namespace IRI
- http://rdf.webofcode.org/woc/
- Type
- Ontology
- Version
- Not verified
- Licence statement
- GPL-3.0-only (Bioregistry)
- Standard or contact
- Not registered
- Definition file check
- File parsed · Nov 30, 2026 UTC
- Collected from
- Bioregistry
At a glance
Derived from the parsed definition file, not written by an editor.
- Classes
- 65
- Properties
- 100
- Triples in file
- 1,616
- Connections
- 3
- Papers and standards
- 0
Counted as stated directly in the definition file, within its own namespace, without imports or inference. The file also declares 6 terms from other namespaces.
Central classes
The classes with the most subclass and property links.
Top of the hierarchy
Classes with subclasses but no parent inside this file.
What it lets you say
Properties read as domain, property, range.
- Expressionhas subexpressionExpression
- Expressionis subexpression ofStatement
- Expressionhas typeType
- Typeis type ofExpression
- StatementnextStatement
- For Statementhas conditionExpression
- Expressionis condition ofFor Statement
- Variable Declarationhas initializerExpression
Class hierarchy
Open a class to follow its subclasses downward. The number is how many direct subclasses it has.
Code Element9
Statement8
Block Statement3
Labeled Block2
- Case Labeled Block
- Default Labeled Block
- Catch Block
- Finally Block
Control Flow Statement3
Loop Statement4
- Do Statement
- For Statement
- ForEach Statement
- While Statement
Branching Statement3
- Break Statement
- Continue Statement
- Return Statement
Decision Making Statement2
- If-then-else statement
- Switch Statement
Declaration statement2
Variable Declaration2
- Field Declaration
- Local Variable Declaration Statement
- Class Declaration Statement
- Assert Statement
- Expression statement
- Synchronized Statement
- Throw Statement
- Try Statement
Type7
Complex Type3
Class1
- Anonymous Class
- Enum
- Interface
- Annotation
- Array Type
- Parameterized Type
- Primitive Type
- Type Variable
- Wildcard
Expression3
Executable invocation expression2
- Class Instance Creation Expression
- Method Invocation Expression
- Actual Argument
- Assignment Expression
Modifiable3
Complex Type3
Class1
- Anonymous Class
- Enum
- Interface
Executable2
- Constructor
- Method
- Field
Variable3
- Field
- Local Variable
- Parameter
Executable2
- Constructor
- Method
Modifier1
- Access Modifier
- Package
- Type Argument
Project2
- Gradle Project
- Maven Project
Class graph
Select a class to read its original definition and the properties attached to it. Drag to move, scroll to zoom.
subclass of (child to parent)property (domain to range)
All 65 classes
| Term | Original definition |
|---|---|
| Expression woc.ontology:Expression | A generic expression |
| Statement woc.ontology:Statement | A generic statement |
| Code Element woc.ontology:CodeElement | A generic element in source code |
| Executable woc.ontology:Executable | An executable block of code, namely a Method or a Constructor |
| Class woc.ontology:Class | A class |
| Complex Type woc.ontology:ComplexType | A class or an enumeration or an interface |
| Method woc.ontology:Method | A Method |
| Type woc.ontology:Type | A type |
| Project woc.ontology:Project | A project |
| Variable woc.ontology:Variable | A variable |
| Interface woc.ontology:Interface | An interface |
| Try Statement woc.ontology:TryStatement | A try statement |
| Block Statement woc.ontology:BlockStatement | A block |
| For Statement woc.ontology:ForStatement | A for statement |
| If-then-else statement woc.ontology:IfThenElseStatement | A If-then-else statement |
| Loop Statement woc.ontology:LoopStatement | A loop statement. |
| Annotation woc.ontology:AnnotationType | An annotation |
| Modifiable woc.ontology:Modifiable | An element that can have a modifier |
| Type Variable woc.ontology:TypeVariable | A type variable is an unqualified identifier used as a type. It is introduced by the declaration of a generic class, interface, method, or constructor |
| Variable Declaration woc.ontology:VariableDeclarationStatement | A statement that represents the declaration of a variable |
| Executable invocation expression woc.ontology:ExecutableInvocationExpression | An invocation of either a method or a constructor. |
| Labeled Block woc.ontology:LabeledBlock | A labeled block of code, namely a case-labeled block or a default-labeled block |
| Package woc.ontology:Package | A Package |
| Wildcard woc.ontology:Wildcard | A wildcard |
| Branching Statement woc.ontology:BranchingStatement | A branching statement, namely a break statement, a continue statement or a return statement |
| Catch Block woc.ontology:CatchBlock | A catch block |
| Control Flow Statement woc.ontology:ControlFlowStatement | A control flow statement, that is a statement that regulates the order in which statements are executed. Control Flow Statements break up the flow of execution by employing decision making, looping, or branching. |
| Enum woc.ontology:Enum | An enumeration |
| Field woc.ontology:Field | A class field |
| Modifier woc.ontology:Modifier | A modifier |
| Parameterized Type woc.ontology:ParameterizedType | A parameterized type is a particular parameterization of a generic type denoted by a specified list of type arguments |
| Array Type woc.ontology:ArrayType | An array type |
| Assert Statement woc.ontology:AssertStatement | An assert statement |
| Assignment Expression woc.ontology:AssignmentExpression | An assignment expression. It involves one of the following operators: =, *=, /=, %=, +=, -=, <<=, >>=, >>>=, &=, ^=, |= |
| Constructor woc.ontology:Constructor | A constructor of a Class |
| Decision Making Statement woc.ontology:DecisionMakingStatement | A Decision Making Statement, that is a statement that break up the flow of execution by employing decision making. It can either be a if-then-else statement or a switch statement. |
| Declaration statement woc.ontology:DeclarationStatement | A statement that holds a declaration |
| Do Statement woc.ontology:DoStatement | A do-while statement |
| Finally Block woc.ontology:FinallyBlock | A finally block |
| Library woc.ontology:Library | A library |
| Local Variable woc.ontology:LocalVariable | A local variable |
| Method Invocation Expression woc.ontology:MethodInvocationExpression | A method call |
| Parameter woc.ontology:Parameter | A formal parameter |
| Return Statement woc.ontology:ReturnStatement | A return statement |
| Switch Statement woc.ontology:SwitchStatement | A switch statement |
| Throw Statement woc.ontology:ThrowStatement | A throw statement, that is a statement that causes an exception to be thrown |
| While Statement woc.ontology:WhileStatement | A while statement |
| Actual Argument woc.ontology:ActualArgument | The actual argument of a method |
| Break Statement woc.ontology:BreakStatement | The BreakStatement class represents a break statement. The break statement has two forms: labeled and unlabeled. In case a break statement is labeled, the label is defined through the targetedLabel property |
| Continue Statement woc.ontology:ContinueStatement | A continue statement |
| ForEach Statement woc.ontology:ForEachStatement | A for-each statement, also known as enhanced for statement |
| Type Argument woc.ontology:TypeArgument | This class defines the actual type argument of a parameterized type |
| Access Modifier woc.ontology:AccessModifier | An access modifier |
| Anonymous Class woc.ontology:AnonymousClass | An anonymous class |
| Case Labeled Block woc.ontology:CaseLabeledBlock | A case-labeled list of statements |
| Class Declaration Statement woc.ontology:ClassDeclarationStatement | A statement that corresponds to the declaration of a local class |
| Class Instance Creation Expression woc.ontology:ClassInstanceCreationExpression | An expression that creates a class instance, in other words a constructor call |
| Default Labeled Block woc.ontology:DefaultLabeledBlock | A default-labeled block |
| Expression statement woc.ontology:ExpressionStatement | An expression statement. that is a statement that wraps an expression |
| Field Declaration woc.ontology:FieldDeclarationStatement | The declaration of a field |
| Gradle Project woc.ontology:GradleProject | A gradle project |
| Local Variable Declaration Statement woc.ontology:LocalVariableDeclarationStatement | A local variable declaration |
| Maven Project woc.ontology:MavenProject | A maven project |
| Primitive Type woc.ontology:PrimitiveType | A primitive type |
| Synchronized Statement woc.ontology:SynchronizedStatement | A synchronized statement, that is a statement that acquires a mutual-exclusion lock on behalf of the executiing-thread, executes a block, then release the lock. In java it is of the form: synchronized <Expression> <Block> |
All 100 properties
| Term | Original definition |
|---|---|
| constructs woc.ontology:constructs | The constructs property relates an executable to the classes it constructs. |
| declares woc.ontology:declares | The declares property relates a code element to the elements it declares. For instance, a class is linked to its fields, methods and constructors. |
| extends woc.ontology:extends | The extends property relates a class, an interface, a type variable or a wildacard to the types it extends. |
| has actual type argument woc.ontology:hasActualTypeArgument | The hasActualTypeArgument property relates a parameterized type to each of its actual type arguments |
| has annotation woc.ontology:hasAnnotation | The hasAnnotation property relates a code element to its annotations |
| has argument woc.ontology:hasArgument | The hasArgument property relates an executable invocation to each of its actual arguments. |
| has assert expression woc.ontology:hasAssertExpression | The hasAssertExpression property relates an assert statement to the boolean expression asserted to be true |
| has body woc.ontology:hasBody | The hasBody property relates an executable or a statement to its body. |
| has catch clause woc.ontology:hasCatchClause | The hasCatchClause property relates a try statement to the relative catch clauses. |
| has catch formal parameter woc.ontology:hasCatchFormalParameter | The hasCatchFormalParameter property relates a catch clause to its formal parameters, namely the throwable objects it caughts |
| has condition woc.ontology:hasCondition | The hasCondition property specifies a condition for a statement to be executed. |
| has constructor woc.ontology:hasConstructor | The hasConstructor property relates a class to its constructors. |
| has declaration woc.ontology:hasDeclaration | The hasDeclaration property relates a variable to the statement it was declared by. |
| has dependency woc.ontology:hasDependency | The hasDependency property relates a project to its dependencies. |
| has else branch woc.ontology:hasElseBranch | The hasElseBranch property relates a if-then-else statement to the statement in the else branch. |
| has field woc.ontology:hasField | The hasField property relates a class to its fields |
| has finally clause woc.ontology:hasFinallyClause | The hasFinallyClause property relates a try statemet to its finally clause. |
| has for init woc.ontology:hasForInit | The hasForInit property relates a basic for statement to each statement expression executed as initialization code, before the first iteration step is performed |
| has for update woc.ontology:hasForUpdate | The hasForUpdate property relates a basic for statement to each expression evaluated as update code at the end of every iteration |
| has formal type parameter woc.ontology:hasFormalTypeParameter | The hasFormalTypeParameter property relates a class, an interface, an enumeration, a constructor or a method to the formal type parameters it declares |
| has generic type woc.ontology:hasGenericType | The hasGenericType property relates a parameterized type to the generic type it is a parameterization of |
| has initializer woc.ontology:hasInitializer | The hasInitializer property relates a variable declaration to the expression assigned to the declared variable |
| has left hand side woc.ontology:hasLeftHandSide | The hasLeftHandSide property relates a assignement expression to the left hand side expression it contains |
| has method woc.ontology:hasMethod | The ihasMehtod property relates a class to its methods. |
| has modifier woc.ontology:hasModifier | The hasGenericType property relates a modifiable element to its modifiers |
| next woc.ontology:hasNextStatement | The hasNextStatement property relates a statement to the next statement to be executed. |
| has package woc.ontology:hasPackage | The hasPackage property relates a class, interface, enum or annotation to the package it is declared by. |
| has parameter woc.ontology:hasParameter | The hasParameter property relates a constructor or a method to the formal parameters it declares |
| has previous statement woc.ontology:hasPreviousStatement | The hasPreviousStatement property relates a statement to the previous one. |
| has project woc.ontology:hasProject | The hasProject property relates a package to the project it belongs to. |
| has resource woc.ontology:hasResource | The hasResource property relates a try statement to each local variable declared to act as resource for the try statement |
| has return type woc.ontology:hasReturnType | The hasReturnType property relates a method to its return type. |
| has returned expression woc.ontology:hasReturnedExpression | The hasReturnedExpression property relates a return statement to the returned expression |
| has subclass woc.ontology:hasSubClass | The hasSubClass property relates a class to its direct sub-classes |
| has subexpression woc.ontology:hasSubExpression | The hasSubExpression property relates a statement or expression to the expressions it contains. |
| has subproject woc.ontology:hasSubProject | The hasSubProject property relates a project to its subprojects |
| has substatement woc.ontology:hasSubStatement | The hasSubStatement property relates a statment to its sub-statements. |
| has super bound woc.ontology:hasSuperBound | The hasSuperBound property relates a lower bounded wildcard to its bouds. |
| has switch label woc.ontology:hasSwitchLabel | The hasSwitchLabel property relates a switch statement to its cases. |
| has target woc.ontology:hasTarget | The hasTarget property relates a method invocation expression to its target. |
| has then branch woc.ontology:hasThenBranch | The hasThenBranch property relates a if-then-else statement to the statement declared in the "then" branch |
| has thrown expression woc.ontology:hasThrownExpression | The hasThrownExpression property relates a thrown statement to the expression it throws |
| has type woc.ontology:hasType | The hasType property relates an expression, a variable or a method to its type. |
| has variable woc.ontology:hasVariable | The hasVariable property relates a for-each statement to the local variable it declares. |
| implements woc.ontology:implements | The implements property relates a class to each implemented interface. |
| invokes woc.ontology:invokes | The invokes property relates a invocation expression to the invoked executable. |
| is annotation of woc.ontology:isAnnotationOf | The isAnnotationOf property relates an annotation to the annotated code element. |
| is array of woc.ontology:isArrayOf | The isArrayOf property relates an arrray to the type of its elements at the finest grain. For instance, an array of type "int[][][]" is linked to the type "int". The number of dimensions of the array is specified by the dimensions property. |
| is subexpression of woc.ontology:isAssertExpressionOf | The isAssertExpressionOf property relates a boolean expression to the assert statement it is contained in. |
| is body of woc.ontology:isBodyOf | The isBodyOf property relates a block to the exexcutable or statement it is the body of. |
| is catch clause of woc.ontology:isCatchClauseOf | The isCatchClauseOf property relates a catch clause to the corresponding try statement. |
| is condition of woc.ontology:isConditionOf | The isConditionOf property relates a if-then-else statement or a loop to its condition. |
| is constructed by woc.ontology:isConstructedBy | The isConstructedBy property relates a class to the executables that instantiates objects of that class. |
| is constructor of woc.ontology:isConstructorOf | The isConstructorOf property relates a constructor to the class it is declared by. |
| is declared by woc.ontology:isDeclaredBy | The isDeclaredBy property relates a code element to the element it is declared by. |
| is dependency of woc.ontology:isDependencyOf | The isDependencyOf property relates a library to the projects that depend on this library. |
| is else branch of woc.ontology:isElseBranchOf | The isElseBranchOf property relates the statement in an else branch to the corresponding If-then-else statement |
| is field of woc.ontology:isFieldOf | The isFieldOf property relates a field to the class, interface or enum it is declared by. |
| is finally clause of woc.ontology:isFinallyClauseOf | The isFinallyClauseOf property relates the statement enclosed in a finally clause to the corresponding try statement. |
| is for init of woc.ontology:isForInitOf | The isForInitOf property relates an expression executed as initialization code of a basic for statement to the relative for statement. |
| is for update of woc.ontology:isForUpdateOf | The isForUpdateOf property relates an expression evaluated as update code of a for statement at the end of every iteration, to the corresponding for statement. |
| is implemented by woc.ontology:isImplementedBy | The isImplementedBy property relates an interface to the classes implementig that interface |
| is initializer of woc.ontology:isInitializerOf | The isInitializerOf property relates an expression used to initialize a variable, to the statement it is contained in. |
| is left hand side of woc.ontology:isLeftHandSideOf | The isLeftHandSideOf property relates an expression that is used as left hand side expression of an assignemnt, to the corresponding assignment expression |
| is method of woc.ontology:isMethodOf | The isMethodOf property relates a method to the class, enum or interface it is declared by. |
| is modifier of woc.ontology:isModifierOf | The isModifierOf property relates a modifier to the corresponding modifiable element. |
| is overridden by woc.ontology:isOverriddenBy | The isOverridenBy property relates a method to the ones it is overridden by. |
| is package of woc.ontology:isPackageOf | The isPackageOf property relates a package to the types it declares. |
| is parameter of woc.ontology:isParameterOf | The isParameterOf property relates a parameter to the corresponding executable. |
| is project of woc.ontology:isProjectOf | The isProjectOf property relates a project to the packages it contains. |
| is referenced by woc.ontology:isReferencedBy | The isReferencedBy property relates a code element to the elements it is referenced by. |
| is return type of woc.ontology:isReturnTypeOf | The isReturnTypeOf property relates a type to the methods that return objects of that type. |
| is returned by woc.ontology:isReturnedBy | The isReturnedBy property relates a variable to the methods that return that variable. |
| is returned expression of woc.ontology:isReturnedExpressionOf | The isReturnedExpressionOf property relates an expression returned by a method to the return statement it is contained in. |
| is subexpression of woc.ontology:isSubExpressionOf | The isSubExpressionOf property relates an expression to its parent expression. |
| is subproject of woc.ontology:isSubProjectOf | The isSubProjectOf property relates a project to its parent project. |
| is substatement of woc.ontology:isSubStatementOf | The isSubStatementOf property relates a statement to the method, constructor or statement it is contained in. |
| is switch label of woc.ontology:isSwitchLabelOf | The isSwitchLabelOf property relates a case labeled block or a default block to the corresponding switch statement. |
| is target of woc.ontology:isTargetOf | The isTargetOf property relates an expression used as target of a method invocation, to the corresponding method invocation. |
| is then branch of woc.ontology:isThenBranchOf | The isThenBranchOf property relates a statement enclosed in a then branch to the corresponding If-then-else statement |
| is thrown by woc.ontology:isThrownBy | The isThrownBy property relates an exception to the executables it is thrown by. |
| is thrown expression of woc.ontology:isThrownExpressionOf | The isThrownExpressionOf property relates a thrown expression, to the throw statement it is contained in. |
| is type of woc.ontology:isTypeOf | The isTypeOf property relates a type to the elements of that type. |
| overrides woc.ontology:overrides | The overrides property relates a method to the method it overrides. |
| references woc.ontology:references | The references property relates a method or a constructor to the types, methods, constructors and fields it references. |
| returns woc.ontology:returns | The returns property relates a method to the variable it returns, if any. |
| throws woc.ontology:throws | The throws property relates a method or a constructor to the exceptions it declares to throw. |
| build file woc.ontology:hasBuildFile | Links a project to the content of its build file. |
| has canonical name woc.ontology:hasCanonicalName | Links a class, enum or interface to its canonical name. For instance, the class Java.lang.String is linked to the string "java.lang.string" |
| dimensions woc.ontology:hasDimensions | Links an array to the number of its dimensions. As an example, an array of type "int[][][]" has a dimensions count of 3 |
| end line woc.ontology:hasEndLine | Links a statement to the number of the last line it covers |
| label woc.ontology:hasLabel | Links a labeled statement to its label |
| line woc.ontology:hasLine | Links a statement to the line it starts in |
| name woc.ontology:hasName | Links a element to its name |
| position woc.ontology:hasPosition | Links a element to its position |
| has return description woc.ontology:hasReturnDescription | the hasReturnDescriptionProperty relates a method to a description of its return value |
| has simple name woc.ontology:hasSimpleName | Links a class, enum or interface to its simple name. For instance, the simple name of the class java.lang.String is "String" |
| source code woc.ontology:hasSourceCode | Links a element to its source code |
| targeted label woc.ontology:hasTargetedLabel | Links a break statement or a continue statement to the label it targets, if any |
| is var args woc.ontology:isVarArgs | True if an executable accepts a variable number of parameters, false otherwise |
Connections
Relations stated in a definition file or an official registry. Each row shows where the statement comes from.
What this ontology builds on 3
What builds on this ontology 0
None
Ontology with a stated relationPaper or standardRepositorySimilarity candidate (computed)
Show the evidence table (3 rows)
| Direction | Ontology | Relation | Evidence |
|---|---|---|---|
| This → other | The RDF Concepts Vocabulary | reuses terms (4 terms) | definition file type, first, rest |
| This → other | XKOS | reuses terms (6 terms) | definition file hasPart, specializes, next |
| This → other | XML Schema | reuses terms (3 terms) | definition file string, int, boolean |
Similarity candidates
Candidates are ranked by shared words in descriptions and term labels. They are a starting point for your own check, not a statement of equivalence, compatibility or official relation.
Similar ontologies
- 0.15Compare
- SHACL Shapes Constraint Languagesh
Shared words: executable, java, declaration, declare, expression · Repository0.14Compare - 0.13Compare
- 0.12Compare
- SQL Abstract Syntax Trees Vocabularysql
Shared words: clause, statement, return, expression, argument0.11Compare - 0.11Compare
- 0.10Compare
- Shape Expression Vocabularyshex
Shared words: wildcard, declaration, expression, declare, annotation · Repository0.10Compare
Papers and standards
No paper or standard is linked yet. A missing paper is not a defect: an official specification can serve as evidence.
Files and repository
| File | Format | Location |
|---|---|---|
| Definition file | RDF/XML | https://raw.githubusercontent.com/codeontology/parser/master/ontology/CodeOntology.owl |
| Repository | — | https://github.com/codeontology/parser |
Check record
- Fetch fileDone
- Parse RDFDone
- Extract termsDone
A parsed file means it could be read. It does not vouch for logical consistency or modelling quality.
- Definition file check
- File parsed
- Checked at
- Nov 30, 2026 UTC
- Format
- RDF/XML
- Parser
- rdfxml-streaming-parser
- Size
- 141,681 B
- SHA-256
- 7772aec91d0a0be79b633668795fe3a3984c4d76d9a9880af283b2fdd4472fac