Skip to content

Commit

Permalink
doc: property -> predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Nov 3, 2023
1 parent 959aaaf commit 1428d69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gimie/graph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Tuple, TypeAlias, Union
from typing import Tuple, Union

from rdflib.term import Literal, URIRef

Expand Down
3 changes: 2 additions & 1 deletion gimie/graph/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def combine_graphs(*graphs: Graph) -> Graph:


def properties_to_graph(uri: URIRef, properties: Set[Property]) -> Graph:
"""Convert a set of property-object tuples into a graph."""
"""Attaches a set of predicate-object tuples to input
URI to produce an RDF graph."""
g = Graph()
for pred, obj in properties:
g.add((uri, pred, obj))
Expand Down
2 changes: 1 addition & 1 deletion gimie/parsers/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self):

@abstractmethod
def parse(self, data: bytes) -> Set[Property]:
"""Extract property-object tuples from a source."""
"""Extract predicate-object tuples from a source."""
...

def parse_all(self, docs: Iterable[bytes]) -> Set[Property]:
Expand Down

0 comments on commit 1428d69

Please sign in to comment.