@prefix core: . @prefix xsd: . @prefix dcterms: . @prefix crtv: . @prefix rdf: . @prefix rdfs: . @prefix ex: . @prefix extension: . @base . # Intent is to generate OSLC Spec Resource Definition Tables from resource shapes like this one. a core:ResourceShape ; dcterms:title "DB-shape-placeholder" ; # add this to anything present in the described class's vocabulary document core:describes crtv:Database ; core:property ; core:property ; . a core:Property ; core:name "name" ; core:propertyDefinition crtv:name ; # URI of property being described dcterms:title "crtv:name" ; # How to display the prefixed name in the Wiki table dcterms:description "The name assigned to the database by the DBA. For DB2 and Oracle, use the database name." ; # add this to anything present in the described property's vocabulary document; MAY contain markup core:occurs core:Zero-or-one ; # Delete the ones you don't want, only 1 allowed core:readOnly false ; # boolean, comment out if unspecified core:valueType xsd:string ; # Delete the ones you don't want, only 1 allowed . a core:Property ; core:name "dbInstance" ; core:propertyDefinition crtv:dbInstance ; # URI of property being described dcterms:title "crtv:dbInstance" ; # How to display the prefixed name in the Wiki table dcterms:description "The SoftwareServer representing the database instance that manages this database." ; # add this to anything present in the described property's vocabulary document; MAY contain markup core:occurs core:Zero-or-many ; # Delete the ones you don't want, only 1 allowed core:readOnly false ; # boolean, comment out if unspecified core:valueType core:Resource ; # Delete the ones you don't want, only 1 allowed core:representation core:Reference ; # For resource value types only. Delete the ones you don't want, only 1 allowed core:range core:Any; # For resource value types, 1 triple for each possible target class type extension:rangeSuggestion crtv:SoftwareServer ; . ex:SampleType a core:ResourceShape ; dcterms:title "" ; # add this to anything present in the described class's vocabulary document core:describes ex:SampleType ; core:property ex:SampleType-SampleProperty ; core:property ex:SampleType-SampleProperty ; . # This re-uses, WITH CHANGES, http://open-services.net/bin/view/Main/OSLCCoreSpecAppendixA?sortcol=table;table=up#oslc_ResourceShape_Resource # Changes are: # core:name dropped, not needed in wiki tables # several optional properties omitted for same reason ex:SampleType-SampleProperty a core:Property ; core:name "SampleType-SampleProperty" ; # "NCName" of property being described core:propertyDefinition ex:SampleType-SampleProperty ; # URI of property being described dcterms:title "" ; # How to display the prefixed name in the Wiki table dcterms:description "" ; # add this to anything present in the described property's vocabulary document; MAY contain markup core:occurs core:Zero-or-one ; # Delete the ones you don't want, only 1 allowed core:occurs core:Exactly-one ; # Delete the ones you don't want, only 1 allowed core:occurs core:One-or-many ; # Delete the ones you don't want, only 1 allowed core:occurs core:Zero-or-many ; # Delete the ones you don't want, only 1 allowed core:propertyDefinition ex:SampleType-SampleProperty ; # URI of property being described core:readOnly true ; # boolean, comment out if unspecified core:valueType xsd:boolean ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:dateTime ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:decimal ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:double ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:float ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:integer ; # Delete the ones you don't want, only 1 allowed core:valueType xsd:string ; # Delete the ones you don't want, only 1 allowed core:valueType rdf:XMLLiteral ; # Delete the ones you don't want, only 1 allowed core:valueType core:Resource ; # Delete the ones you don't want, only 1 allowed core:valueType core:LocalResource ; # Delete the ones you don't want, only 1 allowed core:valueType core:AnyResource ; # Delete the ones you don't want, only 1 allowed core:representation core:Either ; # For resource value types only. Delete the ones you don't want, only 1 allowed core:representation core:Reference ; # For resource value types only. Delete the ones you don't want, only 1 allowed core:representation core:Inline ; # For resource value types only. Delete the ones you don't want, only 1 allowed core:range core:Any; # For resource value types, 1 triple for each possible target class type extension:rangeSuggestion ex:SampleType ; # Add type; generate the spec boilerplate saying "may be anything, but should be one of these..." . ex:SampleType-SamplePropertyExtras # Resource Shape properties that MIGHT be sensible to add but are not in the official sample above core:allowedValues ex:SampleType ; # only for enumerations core:allowedValue ex:SampleType ; # enums core:defaultValue ex:SampleType ; # enums .