|
17 | 17 | import com.github.owlcs.ontapi.jena.utils.Graphs;
|
18 | 18 | import com.github.owlcs.ontapi.jena.vocabulary.OWL;
|
19 | 19 | import com.github.owlcs.ontapi.jena.vocabulary.RDF;
|
20 |
| -import com.github.owlcs.ontapi.transforms.GraphTransformers; |
| 20 | +import com.github.owlcs.ontapi.transforms.GraphStats; |
21 | 21 | import com.github.owlcs.ontapi.transforms.OWLIDTransform;
|
22 | 22 | import com.google.common.collect.ArrayListMultimap;
|
23 | 23 | import com.google.common.collect.Multimap;
|
|
43 | 43 |
|
44 | 44 | /**
|
45 | 45 | * Implementation of {@link OWLOntologyLoaderMetaData}.
|
46 |
| - * A wrapper for {@link GraphTransformers.Stats Transformation Stats} to satisfy OWL-API. |
| 46 | + * A wrapper for {@link GraphStats Transformation Stats} to satisfy OWL-API. |
47 | 47 | * Constructed while loading to provide some additional information about runtime changes in the source.
|
48 | 48 | * <p>
|
49 | 49 | * Created by @szuev on 28.06.2018.
|
50 | 50 | *
|
51 |
| - * @see GraphTransformers.Stats |
| 51 | + * @see GraphStats |
52 | 52 | */
|
53 | 53 | @SuppressWarnings("WeakerAccess")
|
54 | 54 | public class OntologyMetaData implements OWLOntologyLoaderMetaData {
|
@@ -94,26 +94,26 @@ public static OntologyMetaData createParserMetaData(Graph graph) {
|
94 | 94 |
|
95 | 95 | /**
|
96 | 96 | * A factory method.
|
97 |
| - * Creates {@link OWLOntologyLoaderMetaData} from the given {@link GraphTransformers.Stats Transformation Stats}. |
| 97 | + * Creates {@link OWLOntologyLoaderMetaData} from the given {@link GraphStats Transformation Stats}. |
98 | 98 | *
|
99 | 99 | * @param stats not null
|
100 | 100 | * @return {@link OntologyMetaData} instance, not null
|
101 | 101 | */
|
102 |
| - public static OntologyMetaData createParserMetaData(GraphTransformers.Stats stats) { |
| 102 | + public static OntologyMetaData createParserMetaData(GraphStats stats) { |
103 | 103 | Graph graph = Graphs.getBase(Objects.requireNonNull(stats, "Null graph").getGraph());
|
104 | 104 | RDFOntologyHeaderStatus header = RDFOntologyHeaderStatus.PARSED_ONE_HEADER;
|
105 | 105 | String idKey = OWLIDTransform.class.getSimpleName();
|
106 |
| - if (stats.hasTriples(GraphTransformers.Stats.Type.ADDED, idKey)) { |
| 106 | + if (stats.hasTriples(GraphStats.Type.ADDED, idKey)) { |
107 | 107 | header = RDFOntologyHeaderStatus.PARSED_ZERO_HEADERS;
|
108 | 108 | }
|
109 |
| - if (stats.hasTriples(GraphTransformers.Stats.Type.DELETED, idKey)) { |
| 109 | + if (stats.hasTriples(GraphStats.Type.DELETED, idKey)) { |
110 | 110 | header = RDFOntologyHeaderStatus.PARSED_MULTIPLE_HEADERS;
|
111 | 111 | }
|
112 |
| - Set<RDFTriple> unparsed = stats.triples(GraphTransformers.Stats.Type.UNPARSED) |
| 112 | + Set<RDFTriple> unparsed = stats.triples(GraphStats.Type.UNPARSED) |
113 | 113 | .map(OntGraphUtils::triple)
|
114 | 114 | .collect(Collectors.toSet());
|
115 | 115 | ArrayListMultimap<IRI, Class<? extends OWLObject>> guessedDeclarations = ArrayListMultimap.create();
|
116 |
| - stats.triples(GraphTransformers.Stats.Type.ADDED) |
| 116 | + stats.triples(GraphStats.Type.ADDED) |
117 | 117 | .collect(Collectors.toSet())
|
118 | 118 | .forEach(t -> {
|
119 | 119 | // note: anonymous subject also wrapped as iri
|
|
0 commit comments