src/main/java/eu/periclesproject/pet2lrm/FileModuleMapper.java
/**
	 * Add general extraction module result information to the ontology. This is
	 * also done for modules which are unknown.
	 * 
	 * @param partResource
	 * @param result
	 * @return
	 */
Add general extraction module result information to the ontology. This is
also done for modules which are unknown.

@param partResource
@param result
@return
Add general extraction module result information to the ontology . This is also done for modules which are unknown . @param partResource @param result @return
private Resource mapGeneralResultInformation(Resource partResource,
			ExtractionResult result) {
		Resource resultResource = ontology.model
				.createResource(ontology.PET2LRM_NS + result.hashCode());
		Resource moduleResource = ontology.model
				.createResource(ontology.PET2LRM_NS + result.configurationHash);
		moduleResource.addProperty(LRM_static_schema.realizes,
				ontology.abstractModule);
		moduleResource.addProperty(RDFS.label, result.moduleName);
		resultResource.addProperty(ontology.hasClassRepresentation,
				result.moduleClass);  java module class
		resultResource.addProperty(ontology.hasVersion,
				result.moduleVersion);
		resultResource.addProperty(ontology.hasDisplayName,
				result.moduleDisplayName);
		resultResource.addProperty(ontology.hasExtractionDate,
				result.extractionDate.toString());
		resultResource.addProperty(ontology.isExtractedBy, moduleResource);
		resultResource.addProperty(ontology.hasConfiguration,
				result.configurationHash);
		resultResource.addProperty(LRM_static_schema.partOf, partResource);
		return resultResource;
	}
private Resource mapGeneralResultInformation ( Resource partResource , ExtractionResult result ) { Resource resultResource = ontology . model . createResource ( ontology . PET2LRM_NS + result . hashCode ( ) ) ; Resource moduleResource = ontology . model . createResource ( ontology . PET2LRM_NS + result . configurationHash ) ; moduleResource . addProperty ( LRM_static_schema . realizes , ontology . abstractModule ) ; moduleResource . addProperty ( RDFS . label , result . moduleName ) ; resultResource . addProperty ( ontology . hasClassRepresentation , result . moduleClass ) ; resultResource . addProperty ( ontology . hasVersion , result . moduleVersion ) ; resultResource . addProperty ( ontology . hasDisplayName , result . moduleDisplayName ) ; resultResource . addProperty ( ontology . hasExtractionDate , result . extractionDate . toString ( ) ) ; resultResource . addProperty ( ontology . isExtractedBy , moduleResource ) ; resultResource . addProperty ( ontology . hasConfiguration , result . configurationHash ) ; resultResource . addProperty ( LRM_static_schema . partOf , partResource ) ; return resultResource ; }
Add general extraction module result information to the ontology.
Add general extraction module result information to the ontology .
// // java module class