Properties
BlankNode
BlankNode: function = this.RULE('BlankNode', () => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.BLANK_NODE_LABEL) },{ ALT: () => this.CONSUME(turtleTokenMap.ANON) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
BooleanLiteral
BooleanLiteral: function = this.RULE('BooleanLiteral', () => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.TRUE) },{ ALT: () => this.CONSUME(turtleTokenMap.FALSE) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EmbeddedPredicateObjectList
EmbeddedPredicateObjectList: function = this.RULE('EmbeddedPredicateObjectList', () => {this.CONSUME(turtleTokenMap.LCurly);this.SUBRULE(this.predicateObjectList);this.CONSUME(turtleTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EmbeddedTriplePattern
EmbeddedTriplePattern: function = this.RULE('EmbeddedTriplePattern', () => {this.CONSUME(turtleTokenMap.LEmbed);this.SUBRULE(this.triples);this.CONSUME(turtleTokenMap.REmbed);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
NumericLiteral
NumericLiteral: function = this.RULE('NumericLiteral', () => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.INTEGER) },{ ALT: () => this.CONSUME(turtleTokenMap.DECIMAL) },{ ALT: () => this.CONSUME(turtleTokenMap.DOUBLE) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
PrefixedName
PrefixedName: function = this.RULE('PrefixedName', () => {const prefixedNameToken = this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.PNAME_LN) },{ ALT: () => this.CONSUME(turtleTokenMap.PNAME_NS) },]);const pnameNsImage = prefixedNameToken.image.slice(0,prefixedNameToken.image.indexOf(':'));if (!(pnameNsImage in this.namespacesMap)) {this.semanticErrors.push({name: 'NoNamespacePrefixError',message: 'A prefix was used for which there was no namespace defined.',token: prefixedNameToken,context: {ruleStack: (<any>this).getHumanReadableRuleStack(),ruleOccurrenceStack: [...(<any>this).RULE_OCCURRENCE_STACK],},resyncedTokens: [], // these don't really make sense for semantic errors, since they don't cause the parser to resync});}})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
RDFLiteral
RDFLiteral: function = this.RULE('RDFLiteral', () => {this.SUBRULE(this.String);this.OPTION(() => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.LANGTAG) },{ALT: () => {this.CONSUME(turtleTokenMap.DoubleCaret);this.SUBRULE(this.iri);},},]);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
String
String: function = this.RULE('String', () => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.STRING_LITERAL_QUOTE) },{ ALT: () => this.CONSUME(turtleTokenMap.STRING_LITERAL_SINGLE_QUOTE) },{ALT: () =>this.CONSUME(turtleTokenMap.STRING_LITERAL_LONG_SINGLE_QUOTE),},{ ALT: () => this.CONSUME(turtleTokenMap.STRING_LITERAL_LONG_QUOTE) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
base
base: function = this.RULE('base', () => {this.CONSUME(turtleTokenMap.TTL_BASE);this.CONSUME(turtleTokenMap.IRIREF);this.CONSUME(turtleTokenMap.Period);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
blankNodePropertyList
blankNodePropertyList: function = this.RULE('blankNodePropertyList',(allowEdgeProperties: boolean) => {this.CONSUME(turtleTokenMap.LBracket);this.SUBRULE(this.predicateObjectList, { ARGS: [allowEdgeProperties] });this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
collection
collection: function = this.RULE('collection', () => {this.CONSUME(turtleTokenMap.LParen);this.MANY(() => this.SUBRULE(this.object));this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
directive
directive: function = this.RULE('directive', () => {this.OR([{ ALT: () => this.SUBRULE(this.prefixID) },{ ALT: () => this.SUBRULE(this.base) },{ ALT: () => this.SUBRULE(this.sparqlPrefix) },{ ALT: () => this.SUBRULE(this.sparqlBase) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
errors
errors: IRecognitionException[]
iri
iri: function = this.RULE('iri', () => {this.OR([{ ALT: () => this.CONSUME(turtleTokenMap.IRIREF) },{ ALT: () => this.SUBRULE(this.PrefixedName) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Protected lexer
lexer: Lexer
literal
literal: function = this.RULE('literal', () => {this.OR([{ ALT: () => this.SUBRULE(this.RDFLiteral) },{ ALT: () => this.SUBRULE(this.NumericLiteral) },{ ALT: () => this.SUBRULE(this.BooleanLiteral) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Protected namespacesMap
namespacesMap: object
object
object: function = this.RULE('object', (allowEdgeProperties: boolean) => {this.OR([{ ALT: () => this.SUBRULE(this.iri) },{ ALT: () => this.SUBRULE(this.BlankNode) },{ ALT: () => this.SUBRULE(this.collection) },{ALT: () =>this.SUBRULE(this.blankNodePropertyList, {ARGS: [allowEdgeProperties],}),},{ ALT: () => this.SUBRULE(this.literal) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
objectList
objectList: function = this.RULE('objectList', (allowEdgeProperties: boolean) => {this.SUBRULE(this.object, { ARGS: [allowEdgeProperties] });this.MANY(() => {this.CONSUME(turtleTokenMap.Comma);this.SUBRULE1(this.object, { ARGS: [allowEdgeProperties] });});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
predicate
predicate: function = this.RULE('predicate', () => {this.SUBRULE(this.iri);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
predicateObjectList
predicateObjectList: function = this.OVERRIDE_RULE('predicateObjectList', () => {this.OR([{ALT: () => {this.SUBRULE(this.shaclRulePredicateObjectList);},},{ALT: () => {this.SUBRULE(this.verb);this.SUBRULE(this.objectList);},},]);this.MANY(() => {this.CONSUME(turtleTokenMap.Semicolon);this.OPTION(() => {this.OR1([{ALT: () => {this.SUBRULE1(this.shaclRulePredicateObjectList);},},{ALT: () => {this.SUBRULE1(this.verb);this.SUBRULE1(this.objectList);},},]);});});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
prefixID
prefixID: function = this.RULE('prefixID', () => {this.CONSUME(turtleTokenMap.TTL_PREFIX);const pnameNsToken = this.CONSUME(turtleTokenMap.PNAME_NS);const iriToken = this.CONSUME(turtleTokenMap.IRIREF);const pnameImageWithoutColon = pnameNsToken.image.slice(0, -1);const iriImage = iriToken.image;this.namespacesMap[pnameImageWithoutColon] = iriImage;this.CONSUME(turtleTokenMap.Period);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Private prefixes
prefixes: any
Protected semanticErrors
semanticErrors: IRecognitionException[] = []
shaclAlternativePath
shaclAlternativePath: function = this.RULE('shaclAlternativePath', () => {this.CONSUME(turtleTokenMap.LBracket);this.CONSUME(this.shaclTokenMap.SHACL_alternativePath);this.SUBRULE(this.shaclPropertyPathPath); // This does not match the SHACL spec, but it does match the test cases, which violate the spec. ;_;this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclAnyLiteralConstraint
shaclAnyLiteralConstraint: function = this.RULE('shaclAnyLiteralConstraint', () => {this.CONSUME(categoryTokenMap.AnyLiteralTakingPredicate);this.SUBRULE(this.literal);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclBooleanConstraint
shaclBooleanConstraint: function = this.RULE('shaclBooleanConstraint', () => {this.CONSUME(categoryTokenMap.BooleanTakingPredicate);this.OR([{ALT: () => this.CONSUME(turtleTokenMap.TRUE),},{ALT: () => this.CONSUME(turtleTokenMap.FALSE),},{ALT: () => this.SUBRULE(this.shaclXsdBoolean),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclHasValueConstraint
shaclHasValueConstraint: function = this.RULE('shaclHasValueConstraint', () => {this.CONSUME(this.shaclTokenMap.SHACL_hasValue);this.SUBRULE(this.shaclShapeOrLiteral);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclIRICollection
shaclIRICollection: function = this.RULE('shaclIRICollection', () => {this.CONSUME(turtleTokenMap.LParen);this.MANY(() => {this.SUBRULE(this.iri);});this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclIRIListTakingConstraint
shaclIRIListTakingConstraint: function = this.RULE('shaclIRIListTakingConstraint',() => {this.CONSUME(this.shaclTokenMap.SHACL_ignoredProperties);this.SUBRULE(this.shaclIRICollection);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclIRIOrLiteral
shaclIRIOrLiteral: function = this.RULE('shaclIRIOrLiteral', () => {this.OR([{ALT: () => this.SUBRULE(this.iri),},{ALT: () => this.SUBRULE(this.literal),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclIntConstraint
shaclIntConstraint: function = this.RULE('shaclIntConstraint', () => {this.CONSUME(categoryTokenMap.IntTakingPredicate);this.OR([{ALT: () => this.CONSUME(turtleTokenMap.INTEGER),},{ALT: () => this.SUBRULE(this.shaclXsdInteger),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclInversePath
shaclInversePath: function = this.RULE('shaclInversePath', () => {this.CONSUME(turtleTokenMap.LBracket);this.CONSUME(this.shaclTokenMap.SHACL_inversePath);this.SUBRULE(this.shaclPropertyPathPath);this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclLangStringConstraint
shaclLangStringConstraint: function = this.RULE('shaclLangStringConstraint', () => {this.CONSUME(categoryTokenMap.LangStringTakingPredicate);this.SUBRULE(this.String);this.OPTION(() => {this.OR([{ALT: () => this.CONSUME(turtleTokenMap.LANGTAG),},{ALT: () => {this.CONSUME(turtleTokenMap.DoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_string);},},]);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclLanguageInConstraint
shaclLanguageInConstraint: function = this.RULE('shaclLanguageInConstraint', () => {this.CONSUME(this.shaclTokenMap.SHACL_languageIn);this.SUBRULE(this.shaclStringCollection);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclListTakingConstraint
shaclListTakingConstraint: function = this.RULE('shaclListTakingConstraint', () => {this.OR([{ALT: () => this.SUBRULE(this.shaclLanguageInConstraint),},{ALT: () => this.SUBRULE(this.shaclShapeListTakingConstraint),},{ALT: () => this.SUBRULE(this.shaclIRIListTakingConstraint),},{ALT: () => this.SUBRULE(this.shaclShapeOrLiteralListTakingConstraint),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclLiteralConstraint
shaclLiteralConstraint: function = this.RULE('shaclLiteralConstraint', () => {this.OR([{ALT: () => this.SUBRULE(this.shaclIntConstraint),},// TODO: Some specificity here is possibly unnecessary -- e.g., maybe `shaclStringConstraint` and `shaclStringLiteralQuoteConstraint` can be consolidated in some way?{ALT: () => this.SUBRULE(this.shaclStringConstraint),},{ALT: () => this.SUBRULE(this.shaclStringLiteralQuoteConstraint),},{ALT: () => this.SUBRULE(this.shaclLangStringConstraint),},{ALT: () => this.SUBRULE(this.shaclBooleanConstraint),},{ALT: () => this.SUBRULE(this.shaclAnyLiteralConstraint),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclNodeKind
shaclNodeKind: function = this.RULE('shaclNodeKind', () => {this.CONSUME(this.shaclTokenMap.SHACL_nodeKind);this.CONSUME(categoryTokenMap.NodeKindIRI);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclOneOrMorePath
shaclOneOrMorePath: function = this.RULE('shaclOneOrMorePath', () => {this.CONSUME(turtleTokenMap.LBracket);this.CONSUME(this.shaclTokenMap.SHACL_oneOrMorePath);this.SUBRULE(this.shaclPropertyPathPath);this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclPredicateIRI
shaclPredicateIRI: function = this.RULE('shaclPredicateIRI', () => {this.OR([{ALT: () => {this.CONSUME(categoryTokenMap.SingleIriTakingPredicate);this.SUBRULE(this.iri);},},{ALT: () => {this.CONSUME(categoryTokenMap.ManyIriTakingPredicate);this.SUBRULE1(this.iri);this.MANY(() => {this.CONSUME(turtleTokenMap.Comma);this.SUBRULE2(this.iri);});},},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclPredicatePath
shaclPredicatePath: function = this.RULE('shaclPredicatePath', () => {this.OR([{ALT: () => this.SUBRULE(this.iri),},{// This case does not seem to be allowed by the SHACL spec, but the// online W3C validator accepts one level of parens wrapping the IRI.ALT: () => {this.CONSUME(turtleTokenMap.LParen);this.SUBRULE1(this.iri);this.CONSUME(turtleTokenMap.RParen);},},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclPropertyPath
shaclPropertyPath: function = this.RULE('shaclPropertyPath', () => {this.CONSUME(this.shaclTokenMap.SHACL_path);this.SUBRULE(this.shaclPropertyPathPath);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclPropertyPathPath
shaclPropertyPathPath: function = this.RULE('shaclPropertyPathPath', () => {this.OR([{ALT: () => this.SUBRULE(this.shaclPredicatePath),},{ALT: () => this.SUBRULE(this.shaclSequencePath),},{ALT: () => this.SUBRULE(this.shaclAlternativePath),},{ALT: () => this.SUBRULE(this.shaclInversePath),},{ALT: () => this.SUBRULE(this.shaclZeroOrMorePath),},{ALT: () => this.SUBRULE(this.shaclOneOrMorePath),},{ALT: () => this.SUBRULE(this.shaclZeroOrOnePath),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclRulePredicateObjectList
shaclRulePredicateObjectList: function = this.RULE('shaclRulePredicateObjectList',() => {this.OR([{ALT: () => this.SUBRULE(this.shaclPredicateIRI),},{ALT: () => this.SUBRULE(this.shaclNodeKind),},{ALT: () => this.SUBRULE(this.shaclTargetNode),},{ALT: () => this.SUBRULE(this.shaclPropertyPath),},{ALT: () => this.SUBRULE(this.shaclLiteralConstraint),},{ALT: () => this.SUBRULE(this.shaclListTakingConstraint),},{ALT: () => this.SUBRULE(this.shaclShapeExpectingConstraint),},{ALT: () => this.SUBRULE(this.shaclHasValueConstraint),},{ALT: () => this.SUBRULE(this.shaclVerbShape),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclSequencePath
shaclSequencePath: function = this.RULE('shaclSequencePath', () => {this.CONSUME(turtleTokenMap.LParen);this.SUBRULE(this.shaclPropertyPathPath);this.AT_LEAST_ONE(() => this.SUBRULE1(this.shaclPropertyPathPath));this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShape
shaclShape: function = this.RULE('shaclShape', () => {this.OR([{ALT: () => this.SUBRULE(this.iri),},{ALT: () => this.SUBRULE(this.blankNodePropertyList),},{ALT: () => this.SUBRULE(this.BlankNode),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeCollection
shaclShapeCollection: function = this.RULE('shaclShapeCollection', () => {this.CONSUME(turtleTokenMap.LParen);this.MANY(() => {this.SUBRULE(this.shaclShape);});this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeExpectingConstraint
shaclShapeExpectingConstraint: function = this.RULE('shaclShapeExpectingConstraint',() => {this.CONSUME(categoryTokenMap.ShapeExpectingPredicate);this.SUBRULE(this.shaclShape);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeListTakingConstraint
shaclShapeListTakingConstraint: function = this.RULE('shaclShapeListTakingConstraint',() => {this.OR([{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_and),},{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_or),},{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_xone),},]);this.SUBRULE(this.shaclShapeCollection);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeOrLiteral
shaclShapeOrLiteral: function = this.RULE('shaclShapeOrLiteral', () => {this.OR([{ALT: () => this.SUBRULE(this.shaclShape),},{ALT: () => this.SUBRULE(this.literal),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeOrLiteralCollection
shaclShapeOrLiteralCollection: function = this.RULE('shaclShapeOrLiteralCollection',() => {this.CONSUME(turtleTokenMap.LParen);this.MANY(() => {this.SUBRULE(this.shaclShapeOrLiteral);});this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeOrLiteralListTakingConstraint
shaclShapeOrLiteralListTakingConstraint: function = this.RULE('shaclShapeOrLiteralListTakingConstraint',() => {this.CONSUME(this.shaclTokenMap.SHACL_in);this.SUBRULE(this.shaclShapeOrLiteralCollection);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclShapeType
shaclShapeType: function = this.RULE('shaclShapeType', () => {this.OR([{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_Shape),},{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_NodeShape),},{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_PropertyShape),},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclStringCollection
shaclStringCollection: function = this.RULE('shaclStringCollection', () => {this.CONSUME(turtleTokenMap.LParen);this.MANY(() => {this.CONSUME(turtleTokenMap.STRING_LITERAL_QUOTE);});this.CONSUME(turtleTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclStringConstraint
shaclStringConstraint: function = this.RULE('shaclStringConstraint', () => {this.OR([{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_select),},{ALT: () => this.CONSUME(this.shaclTokenMap.SHACL_ask),},]);this.SUBRULE(this.String); // TODO: a bit too lax?})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclStringLiteralQuoteConstraint
shaclStringLiteralQuoteConstraint: function = this.RULE('shaclStringLiteralQuoteConstraint',() => {this.CONSUME(categoryTokenMap.StringLiteralQuoteTakingPredicate);this.CONSUME(turtleTokenMap.STRING_LITERAL_QUOTE);this.OPTION(() => {this.OR([{ALT: () => this.CONSUME(turtleTokenMap.LANGTAG),},{ALT: () => {this.CONSUME(turtleTokenMap.DoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_string);},},{ALT: () => {this.CONSUME1(turtleTokenMap.DoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_anyURI);},},]);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclStringWithDoubleCaret
shaclStringWithDoubleCaret: function = this.RULE('shaclStringWithDoubleCaret', () => {this.SUBRULE(this.String);this.CONSUME(turtleTokenMap.DoubleCaret);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclTargetNode
shaclTargetNode: function = this.RULE('shaclTargetNode', () => {this.CONSUME(this.shaclTokenMap.SHACL_targetNode);this.SUBRULE(this.shaclIRIOrLiteral);this.MANY(() => {this.CONSUME(turtleTokenMap.Comma);this.SUBRULE1(this.shaclIRIOrLiteral);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Private shaclTokenMap
shaclTokenMap: any
shaclVerbShape
shaclVerbShape: function = this.RULE('shaclVerbShape', () => {this.SUBRULE(this.verb);this.SUBRULE(this.shaclShapeType);this.MANY(() => {this.CONSUME(turtleTokenMap.Comma);this.SUBRULE1(this.shaclShapeType);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclXsdAnyURI
shaclXsdAnyURI: function = this.RULE('shaclXsdAnyURI', () => {this.SUBRULE(this.shaclStringWithDoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_anyURI);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclXsdBoolean
shaclXsdBoolean: function = this.RULE('shaclXsdBoolean', () => {this.SUBRULE(this.shaclStringWithDoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_boolean);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclXsdDate
shaclXsdDate: function = this.RULE('shaclXsdDate', () => {this.SUBRULE(this.shaclStringWithDoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_date);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclXsdInteger
shaclXsdInteger: function = this.RULE('shaclXsdInteger', () => {this.SUBRULE(this.shaclStringWithDoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_integer);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclXsdString
shaclXsdString: function = this.RULE('shaclXsdString', () => {this.SUBRULE(this.shaclStringWithDoubleCaret);this.CONSUME(this.shaclTokenMap.SHACL_xsd_string);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclZeroOrMorePath
shaclZeroOrMorePath: function = this.RULE('shaclZeroOrMorePath', () => {this.CONSUME(turtleTokenMap.LBracket);this.CONSUME(this.shaclTokenMap.SHACL_zeroOrMorePath);this.SUBRULE(this.shaclPropertyPathPath);this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
shaclZeroOrOnePath
shaclZeroOrOnePath: function = this.RULE('shaclZeroOrOnePath', () => {this.CONSUME(turtleTokenMap.LBracket);this.CONSUME(this.shaclTokenMap.SHACL_zeroOrOnePath);this.SUBRULE(this.shaclPropertyPathPath);this.OPTION(() => this.CONSUME(turtleTokenMap.Semicolon));this.CONSUME(turtleTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
sparqlBase
sparqlBase: function = this.RULE('sparqlBase', () => {this.CONSUME(turtleTokenMap.BASE);this.CONSUME(turtleTokenMap.IRIREF);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
sparqlPrefix
sparqlPrefix: function = this.RULE('sparqlPrefix', () => {this.CONSUME(turtleTokenMap.PREFIX);const pnameNsToken = this.CONSUME(turtleTokenMap.PNAME_NS);const iriToken = this.CONSUME(turtleTokenMap.IRIREF);const pnameImageWithoutColon = pnameNsToken.image.slice(0, -1);const iriImage = iriToken.image;this.namespacesMap[pnameImageWithoutColon] = iriImage;})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
statement
statement: function = this.RULE('statement', (allowEdgeProperties: boolean) => {this.OR([{ ALT: () => this.SUBRULE(this.directive) },{ALT: () => {this.SUBRULE(this.triples, { ARGS: [allowEdgeProperties] });this.CONSUME(turtleTokenMap.Period);},},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
subject
subject: function = this.RULE('subject', () => {this.OR([{ ALT: () => this.SUBRULE(this.iri) },{ ALT: () => this.SUBRULE(this.BlankNode) },{ ALT: () => this.SUBRULE(this.collection) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
triples
triples: function = this.RULE('triples', (allowEdgeProperties: boolean) => {this.OR([{ALT: () => {this.SUBRULE(this.subject);this.SUBRULE1(this.predicateObjectList, {ARGS: [allowEdgeProperties],});},},{GATE: () => Boolean(allowEdgeProperties),ALT: () => {this.SUBRULE(this.EmbeddedTriplePattern);this.SUBRULE(this.predicateObjectList);},},{ALT: () => {this.SUBRULE(this.blankNodePropertyList, {ARGS: [allowEdgeProperties],});this.OPTION(() =>this.SUBRULE2(this.predicateObjectList, {ARGS: [allowEdgeProperties],}));},},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
turtleDoc
turtleDoc: function = this.RULE('turtleDoc', (mode: ModeString) => {const allowEdgeProperties = mode === 'stardog';this.MANY(() =>this.SUBRULE(this.statement, { ARGS: [allowEdgeProperties] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
verb
verb: function = this.RULE('verb', () => {this.OR([{ ALT: () => this.SUBRULE(this.predicate) },{ ALT: () => this.CONSUME(turtleTokenMap.A) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Convenience method, same as MANY but the repetition is of one or more. failing to match at least one repetition will result in a parsing error and cause a parsing error.
MANY