Class STRequests.Metadata
Defined in: STRequests.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
STRequests.Metadata.addFromLocalFile(baseuri, localFilePath, mirrorFile)
imports an ontology from a file in the local file system.
|
<static> |
STRequests.Metadata.addFromOntologyMirror(baseuri, mirrorFile)
imports an ontology by taking its content directly from the ontologies mirror of Semantic Turkey
|
<static> |
STRequests.Metadata.addFromWeb(baseuri, alturl)
imports an ontology from the Web.
|
<static> |
STRequests.Metadata.addFromWebToMirror(baseuri, mirrorFile, alturl)
imports an ontology from the Web to a local cache.
|
<static> |
STRequests.Metadata.changeNSPrefixMapping(prefix, namespace)
overwrites an entry in the prefix-namespace mapping table
|
<static> |
STRequests.Metadata.downloadFromWeb(baseuri, alturl)
as for addFromWeb, excepts that this does not add an owl:imports statement to the current ontology.
|
<static> |
STRequests.Metadata.downloadFromWebToMirror(baseuri, mirrorFile, alturl)
as for addFromWebToMirror, excepts that this does not add an owl:imports statement to the current ontology.
|
<static> |
STRequests.Metadata.getBaseuri()
returns the baseuri of the current ontology
|
<static> |
STRequests.Metadata.getDefaultNamespace()
returns the default namespace of the current ontology
|
<static> |
STRequests.Metadata.getFromLocalFile(baseuri, localFilePath, mirrorFile, alturl)
as for addFromLocalFile, excepts that this does not add an owl:imports statement to the current ontology.
|
<static> |
STRequests.Metadata.getImports()
returns a tree forest representing current ontology imports.
|
<static> |
STRequests.Metadata.getNamedGraphs()
returns the list of named graphs for the current ontology.
|
<static> |
STRequests.Metadata.getNSPrefixMappings()
returns a list of mappings between prefixes and namespaces.
|
<static> |
STRequests.Metadata.getOntologyDescription()
returns the description of resource representing the current ontology
|
<static> |
STRequests.Metadata.mirrorOntology(baseuri, mirrorFile)
mirrors an ontology which has already been imported
|
<static> |
STRequests.Metadata.removeImport(baseuri)
removes an import from the ontology of the current project.
|
<static> |
STRequests.Metadata.removeNSPrefixMapping(namespace)
deletes a mapping from the prefix-namespace mapping table
|
<static> |
STRequests.Metadata.setBaseuri(uri)
sets the baseuri for the ontology of the current project
|
<static> |
STRequests.Metadata.setBaseuriDefNamespace(baseuri, namespace)
sets both baseuri and default namespace for the ontology of the current project
|
<static> |
STRequests.Metadata.setDefaultNamespace(namespace)
sets the default namespace for the ontology of the current project
|
<static> |
STRequests.Metadata.setNSPrefixMapping(prefix, namespace)
adds a mapping between a namespace and a chosen prefix
|
Method Detail
<static>
STRequests.Metadata.addFromLocalFile(baseuri, localFilePath, mirrorFile)
imports an ontology from a file in the local file system. The imported ontology is cached in a local file
in Semantic Turkey's ontologies mirror location
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- localFilePath
- the path to the source file which is imported in the current ontology
- mirrorFile
- the name of the cache file which is saved locally in the ontologies mirror of Semantic Turkey
- Returns:
<static>
STRequests.Metadata.addFromOntologyMirror(baseuri, mirrorFile)
imports an ontology by taking its content directly from the ontologies mirror of Semantic Turkey
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- mirrorFile
- the name of the cache file which is imported into current ontology
- Returns:
<static>
STRequests.Metadata.addFromWeb(baseuri, alturl)
imports an ontology from the Web. The imported ontology is considered to be always available from the Web,
so it is always rrefreshed each time the working ontology is being reloaded
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- alturl
- if the baseuri is different from the phisical location of the ontology, then alturl specifies where to look for the file to be downloaded
- Returns:
<static>
STRequests.Metadata.addFromWebToMirror(baseuri, mirrorFile, alturl)
imports an ontology from the Web to a local cache. The imported ontology is cached in a local file in
Semantic Turkey's ontologies mirror location
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- mirrorFile
- the name of the cache file which is saved locally in the ontologies mirror of Semantic Turkey
- alturl
- if the baseuri is different from the phisical location of the ontology, then alturl specifies where to look for the file to be downloaded
- Returns:
<static>
STRequests.Metadata.changeNSPrefixMapping(prefix, namespace)
overwrites an entry in the prefix-namespace mapping table
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- prefix
- namespace
- Returns:
<static>
STRequests.Metadata.downloadFromWeb(baseuri, alturl)
as for addFromWeb, excepts that this does not add an owl:imports statement to the current ontology. It is
mainly used to recover failed downloads of the content of ontologies which have already been declared to be
imported
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- alturl
- Returns:
<static>
STRequests.Metadata.downloadFromWebToMirror(baseuri, mirrorFile, alturl)
as for addFromWebToMirror, excepts that this does not add an owl:imports statement to the current ontology.
It is mainly used to recover failed downloads of the content of ontologies which have already been declared
to be imported
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- mirrorFile
- alturl
- Returns:
<static>
STRequests.Metadata.getBaseuri()
returns the baseuri of the current ontology
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.getDefaultNamespace()
returns the default namespace of the current ontology
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.getFromLocalFile(baseuri, localFilePath, mirrorFile, alturl)
as for addFromLocalFile, excepts that this does not add an owl:imports statement to the current ontology.
It is mainly used to recover failed downloads of the content of ontologies which have already been declared
to be imported
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- localFilePath
- mirrorFile
- alturl
- Returns:
<static>
STRequests.Metadata.getImports()
returns a tree forest representing current ontology imports. The roots of this forest list ontologies
directly imported from the current ontology, while subsequent nodes represent recursive imports
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.getNamedGraphs()
returns the list of named graphs for the current ontology. By default, Semantic Turkey associates named
graphs to triples of imported ontologies, as well as to
Defined in: SERVICE_Metadata.js.
application
and support
ontologies
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.getNSPrefixMappings()
returns a list of mappings between prefixes and namespaces. Also, for each entry it is told whether this
mapping has been provided by the system (because it has been automatically guessed from the namespace name,
or because it is a mapping specified in one of the imported ontologies) or if has been explictly setup by
the user
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.getOntologyDescription()
returns the description of resource representing the current ontology
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Returns:
<static>
STRequests.Metadata.mirrorOntology(baseuri, mirrorFile)
mirrors an ontology which has already been imported
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- mirrorFile
- Returns:
<static>
STRequests.Metadata.removeImport(baseuri)
removes an import from the ontology of the current project. This operation deletes the named graph
associated to this import and the triples associated to the named graph
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- Returns:
<static>
STRequests.Metadata.removeNSPrefixMapping(namespace)
deletes a mapping from the prefix-namespace mapping table
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- namespace
- Returns:
<static>
STRequests.Metadata.setBaseuri(uri)
sets the baseuri for the ontology of the current project
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- uri
- Returns:
<static>
STRequests.Metadata.setBaseuriDefNamespace(baseuri, namespace)
sets both baseuri and default namespace for the ontology of the current project
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- baseuri
- namespace
- Returns:
<static>
STRequests.Metadata.setDefaultNamespace(namespace)
sets the default namespace for the ontology of the current project
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- namespace
- Returns:
<static>
STRequests.Metadata.setNSPrefixMapping(prefix, namespace)
adds a mapping between a namespace and a chosen prefix
Defined in: SERVICE_Metadata.js.
Defined in: SERVICE_Metadata.js.
- Parameters:
- prefix
- namespace
- Returns: