Methods
(inner) getPredicateForParam(paramDescription, uri, predicateUri)
This function extracts the type of the parameter (eg: 'https://schema.org/height')
from a parameter node, the type of the parameter can occur either with fno:predicate
keyword or with @type
keyword, this function checks both cases and extracts the type
of the parameter as an array (eg:[ 'https://schema.org/latidute' ] or ['/rotation' ])
Parameters:
Name | Type | Description |
---|---|---|
paramDescription |
object | node |
uri |
string | |
predicateUri |
string |
Returns:
an array the predicate (type of the parameter)
(inner) getPredicateFromType(types, uri)
Type of the parameter (the semantic description of the parameter) can occur in
Function Ontology predicate keyword as fno:predicate
or in with @type
keyword, this function extracts the type of the parameter (eg: 'https://schema.org/height')
when type of the parameter given with '@types' keyword
Parameters:
Name | Type | Description |
---|---|---|
types |
array | |
uri |
string |
Returns:
predicate (type of the parameter)