src/main/java/eu/periclesproject/pet2lrm/EnvironmentModuleMapper.java
/**
	 * Add general extraction module result information to the ontology. This is
	 * also done for modules which are unknown.
	 * 
	 * @param environment
	 * @param extractionResult
	 * @return An ontology class that keeps basic information about the
	 *         extraction result. This class is used later to store additional
	 *         information about the extraction result.
	 */
Add general extraction module result information to the ontology. This is
also done for modules which are unknown.

@param environment
@param extractionResult
@return An ontology class that keeps basic information about the
extraction result. This class is used later to store additional
information about the extraction result.
Add general extraction module result information to the ontology . This is also done for modules which are unknown . @param environment @param extractionResult @return An ontology class that keeps basic information about the extraction result . This class is used later to store additional information about the extraction result .
private Individual mapGeneralResultInformation(Individual environment,
			ExtractionResult extractionResult) {
		OntClass specificModule = ontology.model
				.createClass(ontology.PET2LRM_NS + extractionResult.moduleName);
		specificModule.addSuperClass(ontology.abstractModule);
		specificModule.addProperty(ontology.hasClassRepresentation,
				extractionResult.moduleClass); 
		specificModule.addProperty(ontology.hasVersion,
				extractionResult.moduleVersion);
		Individual module = createIndividual(specificModule,
				extractionResult.configurationHash);
		module.addProperty(RDFS.label, extractionResult.moduleName);
		module.addProperty(ontology.hasDisplayName,
				extractionResult.moduleDisplayName);
		module.addProperty(ontology.hasConfiguration,
				extractionResult.configurationHash);
		Individual result = createIndividual(ontology.abstractExtractionResult,
				"" + extractionResult.hashCode());
		result.addProperty(ontology.isExtractedBy, module);
		result.addProperty(ontology.hasExtractionDate,
				extractionResult.extractionDate.toString());
		result.addProperty(LRM_static_schema.partOf, environment);
		return result;
	}
private Individual mapGeneralResultInformation ( Individual environment , ExtractionResult extractionResult ) { OntClass specificModule = ontology . model . createClass ( ontology . PET2LRM_NS + extractionResult . moduleName ) ; specificModule . addSuperClass ( ontology . abstractModule ) ; specificModule . addProperty ( ontology . hasClassRepresentation , extractionResult . moduleClass ) ; specificModule . addProperty ( ontology . hasVersion , extractionResult . moduleVersion ) ; Individual module = createIndividual ( specificModule , extractionResult . configurationHash ) ; module . addProperty ( RDFS . label , extractionResult . moduleName ) ; module . addProperty ( ontology . hasDisplayName , extractionResult . moduleDisplayName ) ; module . addProperty ( ontology . hasConfiguration , extractionResult . configurationHash ) ; Individual result = createIndividual ( ontology . abstractExtractionResult , "" + extractionResult . hashCode ( ) ) ; result . addProperty ( ontology . isExtractedBy , module ) ; result . addProperty ( ontology . hasExtractionDate , extractionResult . extractionDate . toString ( ) ) ; result . addProperty ( LRM_static_schema . partOf , environment ) ; return result ; }
Add general extraction module result information to the ontology.
Add general extraction module result information to the ontology .
// Create specific module class, or get it if it already exists: // java module class // Configured specific module is an instance: // The instance extracts an instance of extraction result (information): // The extracted environment information belongs to an environment // individual: