All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rmlmapper.4.9.0.source-code.functions_idlab.ttl Maven / Gradle / Ivy

Go to download

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources.

There is a newer version: 7.2.0
Show newest version
@prefix dcterms:   .
@prefix fno:       .
@prefix grel:      .
@prefix idlab-fn:  .
@prefix lib:       .
@prefix rdf:       .
@prefix rdfs:      .
@prefix xsd:       .

@prefix :          .

#######################
### IDLab Functions ###
#######################

idlab-fn:equal
    a                   fno:Function ;
    fno:name            "equal" ;
    rdfs:label          "equal" ;
    dcterms:description "Returns true if strings are equal." ;
    fno:expects         ( grel:valueParam grel:valueParam2 ) ;
    fno:returns         ( grel:stringOut ) ;
    lib:providedBy      [ lib:localLibrary "UtilFunctions.jar" ;
                          lib:class        "UtilFunctions" ;
                          lib:method       "equal" ] .

idlab-fn:notEqual
    a                   fno:Function ;
    fno:name            "not equal" ;
    rdfs:label          "not equal" ;
    dcterms:description "Returns true if strings are not equal." ;
    fno:expects         ( grel:valueParam grel:valueParam2 ) ;
    fno:returns         ( grel:stringOut ) ;
    lib:providedBy      [ lib:localLibrary "UtilFunctions.jar" ;
                          lib:class        "UtilFunctions" ;
                          lib:method       "notEqual" ] .

idlab-fn:stringContainsOtherString
    a                   fno:Function ;
    fno:name            "stringContainsOtherString" ;
    rdfs:label          "stringContainsOtherString" ;
    dcterms:description "Returns true if a string is found in a delimited string." ;
    fno:expects         ( idlab-fn:_str idlab-fn:_otherStr idlab-fn:_delimiter ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "stringContainsOtherString" ] .

idlab-fn:listContainsElement
    a                   fno:Function ;
    fno:name            "listContainsElement" ;
    rdfs:label          "listContainsElement" ;
    dcterms:description "Returns true if the string is found in the list" ;
    fno:expects         ( idlab-fn:_list idlab-fn:_str ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "listContainsElement" ] .

idlab-fn:getMIMEType
    a                   fno:Function ;
    fno:name            "getMIMEType" ;
    rdfs:label          "getMIMEType" ;
    dcterms:description "Returns the MIME Type of a filename" ;
    fno:expects         ( idlab-fn:_str ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "getMIMEType" ] .

idlab-fn:decide
    a                   fno:Function ;
    fno:name            "decide" ;
    rdfs:label          "decide" ;
    dcterms:description "Returns a given value if input is equal to another given value" ;
    fno:expects         ( idlab-fn:_str idlab-fn:_expectedStr idlab-fn:_result ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "decide" ] .

idlab-fn:dbpediaSpotlight
    a                   fno:Function ;
    fno:name            "DBpedia Spotlight annotate" ;
    rdfs:label          "DBpedia Spotlight annotate" ;
    dcterms:description "Returns the DBpedia URLs of the detected entities in the input text" ;
    fno:expects         ( idlab-fn:_str idlab-fn:_endpoint ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "dbpediaSpotlight" ] .

idlab-fn:trueCondition
    a                   fno:Function ;
    fno:name            "True condition" ;
    rdfs:label          "True condition" ;
    dcterms:description "Returns the value if the given boolean is true, else null" ;
    fno:expects         ( idlab-fn:_strBoolean idlab-fn:_str ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "trueCondition" ] .

idlab-fn:readFile
    a                   fno:Function ;
    fno:name            "Read local file as string" ;
    rdfs:label          "Read local file as string" ;
    dcterms:description "Returns the content of a local file as string" ;
    fno:expects         ( idlab-fn:_path ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "readFile" ] .

idlab-fn:random
    a                   fno:Function ;
    fno:name            "random" ;
    rdfs:label          "random" ;
    dcterms:description "Returns a random uuid." ;
    fno:expects         ( ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "random" ] .

idlab-fn:inRange
    a                   fno:Function ;
    fno:name            "inRange" ;
    rdfs:label          "in range" ;
    dcterms:description "Returns whether a value is in range" ;
    fno:expects         ( idlab-fn:_test idlab-fn:_from idlab-fn:_to ) ;
    fno:returns         ( idlab-fn:_boolOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "inRange" ] .

grel:valueParam
    a             fno:Parameter ;
    fno:name      "input value" ;
    rdfs:label    "input value" ;
    fno:type      xsd:string ;
    fno:predicate grel:valueParameter .

grel:valueParam2
    a             fno:Parameter ;
    fno:name      "input value 2" ;
    rdfs:label    "input value 2" ;
    fno:type      xsd:string ;
    fno:predicate grel:valueParameter2 .

grel:stringOut
    a             fno:Output ;
    fno:name      "output string" ;
    rdfs:label    "output string" ;
    fno:type      xsd:string ;
    fno:predicate grel:stringOutput .

idlab-fn:toUpperCaseURL
    a                   fno:Function ;
    fno:name            "toUpperCaseURL" ;
    rdfs:label          "toUpperCaseURL" ;
    dcterms:description "Returns an uppercase, valid url." ;
    fno:expects         ( idlab-fn:_str ) ;
    fno:returns         ( idlab-fn:_stringOut ) ;
    lib:providedBy      [ lib:localLibrary "IDLabFunctions.jar" ;
                          lib:class        "IDLabFunctions" ;
                          lib:method       "toUpperCaseURL" ] .

idlab-fn:_path
    a             fno:Parameter ;
    fno:name      "input path" ;
    rdfs:label    "input path" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:path .

idlab-fn:_str
    a             fno:Parameter ;
    fno:name      "input string" ;
    rdfs:label    "input string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:str .

idlab-fn:_strBoolean
    a             fno:Parameter ;
    fno:name      "boolean encoded as string" ;
    rdfs:label    "boolean encoded as string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:strBoolean .

idlab-fn:_endpoint
    a             fno:Parameter ;
    fno:name      "endpoint url string" ;
    rdfs:label    "endpoint url string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:endpoint .

idlab-fn:_otherStr
    a             fno:Parameter ;
    fno:name      "other input string" ;
    rdfs:label    "other input string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:otherStr .

idlab-fn:_expectedStr
    a             fno:Parameter ;
    fno:name      "expected input string" ;
    rdfs:label    "expected input string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:expectedStr .

idlab-fn:_result
    a             fno:Parameter ;
    fno:name      "result string" ;
    rdfs:label    "result string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:result .

idlab-fn:_list
    a             fno:Parameter ;
    fno:name      "list" ;
    rdfs:label    "list" ;
    fno:type      rdf:List ;
    fno:predicate idlab-fn:list .

idlab-fn:_listOut
    a             fno:Parameter ;
    fno:name      "output list" ;
    rdfs:label    "output list" ;
    fno:type      rdf:List ;
    fno:predicate idlab-fn:listOut .

idlab-fn:_delimiter
    a             fno:Parameter ;
    fno:name      "delimiter" ;
    rdfs:label    "delimiter" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:delimiter .

idlab-fn:_test
    a             fno:Parameter ;
    fno:name      "test" ;
    rdfs:label    "test" ;
    fno:type      xsd:double ;
    fno:predicate idlab-fn:p_test .

idlab-fn:_from
    a             fno:Parameter ;
    fno:name      "from" ;
    rdfs:label    "from" ;
    fno:type      xsd:double ;
    fno:predicate idlab-fn:p_from .

idlab-fn:_to
    a             fno:Parameter ;
    fno:name      "to" ;
    rdfs:label    "to" ;
    fno:type      xsd:double ;
    fno:predicate idlab-fn:p_to .

idlab-fn:_stringOut
    a             fno:Output ;
    fno:name      "output string" ;
    rdfs:label    "output string" ;
    fno:type      xsd:string ;
    fno:predicate idlab-fn:stringOut .

idlab-fn:_boolOut
    a             fno:Output ;
    fno:name      "output boolean" ;
    rdfs:label    "output boolean" ;
    fno:type      xsd:boolean ;
    fno:predicate idlab-fn:o_boolOut .




© 2015 - 2025 Weber Informatics LLC | Privacy Policy