Monday, November 27, 2017

Race Condition in Apache Marmotta???

At times resources in Marmotta are unavailable to some unexplained reason.

Java: How to Find a Race Condition.

http://javarevisited.blogspot.co.at/2012/02/what-is-race-condition-in.html

Friday, November 24, 2017

Shacl Links and input graph that passes the SHACL Playground Validator

SHACL Tutorial (TopBraid): https://www.topquadrant.com/technology/shacl/tutorial/

SHACL in RWW CG blog post for October:
https://www.w3.org/community/rww/2017/10/03/read-write-web-q3-summary-2017/

SHACL Links: http://shacl.org/playground/

to pass the validator try:

{
    "@context": { "@vocab": "http://schema.org/" },

    "@id": "http://example.org/ns#Bob",
    "@type": "Person",
    "givenName": "Robert",
    "familyName": "Junior",
    "birthDate": "1971-07-07",
    "deathDate": "1981-09-10",
    "address": {
        "@id": "http://example.org/ns#BobsAddress",
        "streetAddress": "1600 Amphitheatre Pkway",
        "postalCode": 19404
    }
}

Now give bob a gender:

{
    "@context": { "@vocab": "http://schema.org/" },

    "@id": "http://example.org/ns#Bob",
    "@type": "Person",
    "givenName": "Robert",
    "familyName": "Junior",
    "gender" : "male",
    "birthDate": "1971-07-07",
    "deathDate": "1981-09-10",
    "address": {
        "@id": "http://example.org/ns#BobsAddress",
        "streetAddress": "1600 Amphitheatre Pkway",
        "postalCode": 19404
    }
}

Friday, November 3, 2017

Unescaping escaped html in Javascript?

See this link:

http://shebang.brandonmintern.com/foolproof-html-escaping-in-javascript/

Resources found while searching for Git

How to discard changes made to a branch:
https://stackoverflow.com/questions/4830056/git-discard-any-changes-ive-made-to-a-branch

How to delete a branch:
https://makandracards.com/makandra/621-git-delete-a-branch-local-or-remote

How to discard unstaged changes made in git:
https://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git

Immerse yourself in Git:
http://gitimmersion.com/