File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,15 @@ WOQLQuery.prototype.loadDefaultVocabulary = function(){
94
94
vocab . type = "rdf:type" ;
95
95
vocab . label = "rdfs:label" ;
96
96
vocab . Class = "owl:Class" ;
97
+ vocab . DatatypeProperty = "owl:DatatypeProperty" ;
98
+ vocab . ObjectProperty = "owl:ObjectProperty" ;
99
+ vocab . Entity = "tcs:Entity" ;
100
+ vocab . Document = "tcs:Document" ;
101
+ vocab . Relationship = "tcs:Relationship" ;
102
+ vocab . temporality = "tcs:temporality" ;
103
+ vocab . geotemporality = "tcs:geotemporality" ;
104
+ vocab . geography = "tcs:geography" ;
105
+ vocab . abstract = "tcs:abstract" ;
97
106
vocab . comment = "rdfs:comment" ;
98
107
vocab . range = "rdfs:range" ;
99
108
vocab . domain = "rdfs:domain" ;
@@ -658,7 +667,8 @@ WOQLQuery.prototype.addClass = function(c, graph){
658
667
}
659
668
660
669
WOQLQuery . prototype . addProperty = function ( p , t , g ) {
661
- if ( p && t ) {
670
+ t = ( t ? t : "xsd:string" ) ;
671
+ if ( p ) {
662
672
graph = ( g ? this . cleanGraph ( g ) : "db:schema" ) ;
663
673
p = ( p . indexOf ( ":" ) == - 1 ) ? "scm:" + p : p ;
664
674
t = ( t . indexOf ( ":" ) == - 1 ) ? this . cleanType ( t ) : t ;
You can’t perform that action at this time.
0 commit comments