From 69868e1772b87b1c60ce9431cd8b3d8f480011fe Mon Sep 17 00:00:00 2001 From: Marco De Salvo Date: Mon, 27 May 2024 16:13:41 +0200 Subject: [PATCH] More abstraction of RDFFacet --- RDFSharp/Model/RDFFacet.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/RDFSharp/Model/RDFFacet.cs b/RDFSharp/Model/RDFFacet.cs index ac849e7f..d4588ba8 100644 --- a/RDFSharp/Model/RDFFacet.cs +++ b/RDFSharp/Model/RDFFacet.cs @@ -32,7 +32,7 @@ public abstract class RDFFacet /// /// Builds a facet by initializing its blank URI /// - public RDFFacet() + internal RDFFacet() => URI = new RDFResource(); #endregion @@ -40,14 +40,12 @@ public RDFFacet() /// /// Validates the given literal against the facet /// - public virtual bool Validate(string literalValue) - => false; + public abstract bool Validate(string literalValue); /// /// Gives a graph representation of the facet /// - public virtual RDFGraph ToRDFGraph() - => null; + public abstract RDFGraph ToRDFGraph(); #endregion } } \ No newline at end of file