# class FileOntologyLoader

###

Module | nepomuk
Namespace | Nepomuk
Class | FileOntologyLoader
Inherits | OntologyLoader

Deprecated Ontologies should now be handled using the classes in the Nepomuk.Types namespace.

### methods

- FileOntologyLoader ( )

  returns ctor

  Default constructor. Creates a FileOntologyLoader that will try to load the ontology directly from its URL, i.e. the internet.

- FileOntologyLoader (filename, serialization)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  filename | QString |
  serialization | Soprano.RdfSerialization | Soprano.SerializationUnknown

  Creates a FileOntologyLoader that will load the ontology from the specified filename.

- fileName ( )

  returns QString

  The filename that has been set.

  See also setFileName Returns The filename set (can be empty)

- loadOntology (url)

  returns QList<Soprano::Statement>

  Argument | Type | Default
  --- | --- | ---
  url | QUrl |

  reimplemented from OntologyLoader

- setFileName (filename)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  filename | QString |

  Set the filename to be used for reading the ontologies. If no filename has been set FileOntologyLoader will try load the ontology file from the internet, i.e. directly use the ontology URL - NOT IMPLEMENTED YET.

- setSerialization (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.RdfSerialization |

  Set the serialization that is used in the file. Defaults to Soprano.SerializationUnknown