Large Language Models for Knowledge Representation: A Comparative Study of Fine-Tuning and Knowledge Graph Construction across domains