Skip to content

Instantly share code, notes, and snippets.

@phantomjinx
Created April 5, 2019 11:10
Show Gist options
  • Save phantomjinx/dbd9c3c787bee1d9dd0da3e19eb3784f to your computer and use it in GitHub Desktop.
Save phantomjinx/dbd9c3c787bee1d9dd0da3e19eb3784f to your computer and use it in GitHub Desktop.
teiid metadata ...
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<script/>
<edmx:Reference Uri="https://peregrine.birds-of-prey.phantomjinx.org.uk:8543/odata4/static/org.teiid.v1.xml">
<edmx:Include Namespace="org.teiid.v1" Alias="teiid"/>
</edmx:Reference>
<edmx:Reference Uri="https://peregrine.birds-of-prey.phantomjinx.org.uk:8543/odata4/static/org.apache.olingo.v1.xml">
<edmx:Include Namespace="org.apache.olingo.v1" Alias="olingo-extensions"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="usstates.1.USStates" Alias="USStates">
<EntityType Name="SvcView">
<Key>
<PropertyRef Name="RowId"/>
</Key>
<Property Name="RowId" Type="Edm.Int32" Nullable="false"/>
<Property Name="code" Type="Edm.String" MaxLength="4000">
<Annotation Term="teiid.CASE_SENSITIVE">
<Bool>true</Bool>
</Annotation>
<Annotation Term="teiid.SIGNED">
<Bool>false</Bool>
</Annotation>
</Property>
<Property Name="name" Type="Edm.String" MaxLength="4000">
<Annotation Term="teiid.CASE_SENSITIVE">
<Bool>true</Bool>
</Annotation>
<Annotation Term="teiid.SIGNED">
<Bool>false</Bool>
</Annotation>
</Property>
</EntityType>
<EntityContainer Name="USStates">
<EntitySet Name="SvcView" EntityType="USStates.SvcView"/>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
<!--
JBoss, Home of Professional Open Source.
See the COPYRIGHT.txt file distributed with this work for information
regarding copyright ownership. Some portions may be licensed
to Red Hat, Inc. under one or more contributor license agreements.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
-->
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<script/>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/os/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://teiid.org/odata/ns/edm" Namespace="org.teiid.v1" Alias="teiid">
<Term Name="NAMEINSOURCE" Type="Edm.String" AppliesTo="EntityType Property Parameter ReturnType Action Function">
<Annotation Term="Core.Description">
<String> Resource's name in source </String>
</Annotation>
</Term>
<Term Name="UPDATECOUNT" Type="Edm.Int" AppliesTo="Action Function">
<Annotation Term="Core.Description">
<String>
Number of sources that invocation of operation updates.
</String>
</Annotation>
</Term>
<Term Name="NULL_VALUE_COUNT" Type="Edm.Int" AppliesTo="Property">
<Annotation Term="Core.Description">
<String>
Approximate number of NULL values in this property.
</String>
</Annotation>
</Term>
<Term Name="DISTINCT_VALUES" Type="Edm.Int" AppliesTo="Property">
<Annotation Term="Core.Description">
<String>
Approximate number of distinct values in this property.
</String>
</Annotation>
</Term>
<Term Name="SIGNED" Type="Edm.Boolean" AppliesTo="Property" DefaultValue="true">
<Annotation Term="Core.Description">
<String> column defines a signed value </String>
</Annotation>
</Term>
<Term Name="FIXED_LENGTH" Type="Edm.Boolean" AppliesTo="Property" DefaultValue="false">
<Annotation Term="Core.Description">
<String> Is Column Length fixed </String>
</Annotation>
</Term>
<Term Name="CASE_SENSITIVE" Type="Edm.Boolean" AppliesTo="Property" DefaultValue="false">
<Annotation Term="Core.Description">
<String> Is Column value case sensitive </String>
</Annotation>
</Term>
<Term Name="CURRENCY" Type="Edm.Boolean" AppliesTo="Property" DefaultValue="false">
<Annotation Term="Core.Description">
<String> Is Column represents currency </String>
</Annotation>
</Term>
<Term Name="UPDATABLE" Type="Edm.Boolean" AppliesTo="EntityType Property" DefaultValue="false">
<Annotation Term="Core.Description">
<String> defines if resource is updatable </String>
</Annotation>
</Term>
<Term Name="SELECTABLE" Type="Edm.Boolean" AppliesTo="Property" DefaultValue="true">
<Annotation Term="Core.Description">
<String> defines if property is selectable </String>
</Annotation>
</Term>
<Term Name="ACCESS_PATTERNS" Type="Collection(Edm.String)" AppliesTo="EntityType">
<Annotation Term="Core.Description">
<String> defines access patterns on the entity type. </String>
</Annotation>
</Term>
<Term Name="CARDINALITY" Type="Edm.Int" AppliesTo="EntityType">
<Annotation Term="Core.Description">
<String> entity type cardinality information </String>
</Annotation>
</Term>
<Term Name="MATERIALIZED_TABLE" Type="Edm.String" AppliesTo="EntityType">
<Annotation Term="Core.Description">
<String> materialized table name </String>
</Annotation>
</Term>
<Term Name="MATERIALIZED_STAGE_TABLE" Type="Edm.String" AppliesTo="EntityType">
<Annotation Term="Core.Description">
<String> materialized staged table name </String>
</Annotation>
</Term>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment